aboutsummaryrefslogtreecommitdiffstats
path: root/appc-config/appc-config-generator
diff options
context:
space:
mode:
authorMarcin Wilk <m.wilk@samsung.com>2020-11-30 12:18:03 +0100
committerTakamune Cho <takamune.cho@att.com>2020-12-03 15:57:22 +0000
commitff3a4ed0c4d5037bbc2ac46c644cb05b6d0c9c42 (patch)
treefbc72f149264616ae7deae43c4382949aeb3e31b /appc-config/appc-config-generator
parentc7e1c9c4d24314709c3ac5ed12bc2d4b462c5173 (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 (cherry picked from commit d0dd24994a0c1aa0f6600adceeaf76c9bdd064b2)
Diffstat (limited to 'appc-config/appc-config-generator')
-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