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:
parent
a0e382fdca
commit
75cb2918d9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user