aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcin Wilk <m.wilk@samsung.com>2020-11-30 12:18:03 +0100
committerMarcin Wilk <m.wilk@samsung.com>2020-11-30 12:18:03 +0100
commitd0dd24994a0c1aa0f6600adceeaf76c9bdd064b2 (patch)
treecc7a6bb796438468deb41bee87ef52b74b392bc4
parentf0318b256f3c94b98765569fa618878692a9949b (diff)
Fix vm-id URL parsing
vm-id APPC request parameter contains a full OpenStack nova VM URL, which is not parsed correctly. This prevents any APPC LCM requests from successfull completion Issue-ID: APPC-1902 Signed-off-by: Marcin Wilk <m.wilk@samsung.com> Change-Id: I1fd1432ad81d432b51055e99c3697f3280f82e9a
-rw-r--r--appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java b/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java
index e38f8b37a..f49facf93 100644
--- a/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java
+++ b/appc-config/appc-config-generator/provider/src/main/java/org/onap/sdnc/config/generator/tool/JSONTool.java
@@ -66,7 +66,7 @@ public class JSONTool {
String oString = o.toString();
//Add escape characters to the string in case it is a string representation
//of a json object.
- oString = JSONObject.quote(oString);
+ oString = JSONObject.quote(oString, false);
//Remove the surrouding quotes added by the JSONObject.quote() method.
//JSONObject.quote() will always return, at minimum, a string with two quotes,
//even if a null string is passed to it. So this substring method does not