1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-01-27 14:03:40 +03:00

B #5547: Capture JSON errors on OpenNebula Systems Marketplace driver

(cherry picked from commit 09416b78d8ada1c8cd4cfb1edb697263b3bf683a)
This commit is contained in:
Ruben S. Montero 2017-11-13 17:50:04 +01:00
parent 23e57de80a
commit 69b3e4d9b1

View File

@ -111,10 +111,13 @@ class OneMarket
end
end
begin
if !app["opennebula_template"].nil?
vmtmpl64 = template_to_str(JSON.parse(app["opennebula_template"]))
print_var(tmpl, "VMTEMPLATE64", Base64::strict_encode64(vmtmpl64))
end
rescue
end
appstr << "APP=\"#{Base64::strict_encode64(tmpl)}\"\n"
}