Issue-ID: DCAEGEN2-2120
Change-Id: I95f6c3093377921250adf7089eca96f38b838f93
Signed-off-by: Dhrumin Desai <dd303q@att.com>
public Blueprint setQuotations(Blueprint bp) {
for(String s: bp.getInputs().keySet()) {
LinkedHashMap<String, Object> temp = bp.getInputs().get(s);
if(temp.get("type") == "string") {
String def = (String) temp.get("default");
public Blueprint setQuotations(Blueprint bp) {
for(String s: bp.getInputs().keySet()) {
LinkedHashMap<String, Object> temp = bp.getInputs().get(s);
if(temp.get("type") == "string") {
String def = (String) temp.get("default");
- if(def != null && def.equals("")){
- String emptyString = "\"\"";
- Object emptyObj = emptyString;
- temp.put("default", emptyObj);
+ if(def != null){
+ def = def.replaceAll("\"$", "").replaceAll("^\"", "");
+ def = '"' + def + '"';
+ temp.replace("default", def);
bp.getInputs().replace(s, temp);
}
}
bp.getInputs().replace(s, temp);
}
}