From 09416b78d8ada1c8cd4cfb1edb697263b3bf683a Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Mon, 13 Nov 2017 17:50:04 +0100 Subject: [PATCH] B #5547: Capture JSON errors on OpenNebula Systems Marketplace driver --- src/market_mad/remotes/one/monitor | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/market_mad/remotes/one/monitor b/src/market_mad/remotes/one/monitor index 73bce02f73..d5cf02bb38 100755 --- a/src/market_mad/remotes/one/monitor +++ b/src/market_mad/remotes/one/monitor @@ -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" }