summaryrefslogtreecommitdiffstats
path: root/mod/bpgenerator/src
diff options
context:
space:
mode:
authorDhrumin Desai <dd303q@att.com>2020-02-26 10:22:33 -0500
committerDhrumin Desai <dd303q@att.com>2020-02-26 10:29:16 -0500
commitd0fae040ebc6de8eea6b281429275fb53a78704e (patch)
treeb425cf52fcf358868f051d984029610419f356ce /mod/bpgenerator/src
parented303235533f928de8be54af8cf244ac3acb565e (diff)
fixed quotation issue in bp_gen
Issue-ID: DCAEGEN2-2094 Change-Id: I62fa39b7d8bd685b88f5e196029bfd4e2e963171 Signed-off-by: Dhrumin Desai <dd303q@att.com>
Diffstat (limited to 'mod/bpgenerator/src')
-rw-r--r--mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/blueprint/Blueprint.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/blueprint/Blueprint.java b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/blueprint/Blueprint.java
index 75c79ba..7ba4d22 100644
--- a/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/blueprint/Blueprint.java
+++ b/mod/bpgenerator/src/main/java/org/onap/blueprintgenerator/models/blueprint/Blueprint.java
@@ -85,8 +85,11 @@ public class Blueprint {
LinkedHashMap<String, Object> temp = bp.getInputs().get(s);
if(temp.get("type") == "string") {
String def = (String) temp.get("default");
- def = '"' + def + '"';
- temp.replace("default", def);
+ if(def != null && def.equals("")){
+ String emptyString = "\"\"";
+ Object emptyObj = emptyString;
+ temp.put("default", emptyObj);
+ }
bp.getInputs().replace(s, temp);
}
}
@@ -200,7 +203,6 @@ public class Blueprint {
throw new RuntimeException(e);
}
-
return Fixes.applyFixes(ret);
}
}