mirror of
https://github.com/OpenNebula/one.git
synced 2025-01-26 10:03:37 +03:00
B #5547: Capture JSON errors on OpenNebula Systems Marketplace driver
(cherry picked from commit 09416b78d8ada1c8cd4cfb1edb697263b3bf683a)
This commit is contained in:
parent
23e57de80a
commit
69b3e4d9b1
@ -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"
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user