1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #-: add extra check when no body in service (#27)

(cherry picked from commit 75cb2918d9cb749b75198b0b53d2ce48f80e377a)
This commit is contained in:
Alejandro Huertas Herrero 2020-06-18 13:57:38 +02:00 committed by Ruben S. Montero
parent f5abfb7962
commit 51d9062c9e
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -41,7 +41,7 @@ module OpenNebula
hash['DOCUMENT_POOL']['DOCUMENT'].each { |doc|
body = doc['TEMPLATE']["#{TEMPLATE_TAG}"]
if body
if body && !body.empty?
b_hash = JSON.parse(body)
doc['TEMPLATE']["#{TEMPLATE_TAG}"] = b_hash
end
@ -55,4 +55,4 @@ module OpenNebula
end
end
end
end
end