mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 03:42:52 +09:00
B #5547: Capture JSON errors on OpenNebula Systems Marketplace driver
This commit is contained in:
1 parent
9c6c78bfba
commit
09416b78d8
1 file changed
+3
@@ -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"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user