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

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

This commit is contained in:
Alejandro Huertas Herrero 2020-06-18 13:57:38 +02:00 committed by GitHub
parent a0e382fdca
commit 75cb2918d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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