Commit 51dba333 authored by Spiros Koulouzis's avatar Spiros Koulouzis

check if key is present

parent 698454ae
......@@ -468,6 +468,7 @@ public class DeployService {
jo.put("result", result);
}
}
if (result.has("invocation")) {
JSONObject invocation = ((JSONObject) (result).get("invocation"));
if (invocation.has("module_args")) {
JSONObject module_args = (JSONObject) invocation.get("module_args");
......@@ -493,7 +494,7 @@ public class DeployService {
invocation.put("msg", msg);
result.put("invocation", invocation);
}
}
}
newJa.put(jo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment