1
0
mirror of https://github.com/OpenNebula/one.git synced 2024-12-23 17:33:56 +03:00

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

This commit is contained in:
Ruben S. Montero 2017-11-13 17:50:04 +01:00
parent 9c6c78bfba
commit 09416b78d8

View File

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