From 5595d82ee5120b863a833e1e45b262d80f7dc6a1 Mon Sep 17 00:00:00 2001 From: zm330 Date: Tue, 7 May 2019 00:07:22 +0800 Subject: Update the format of resourceInput Save format when resource is list type e.g. {key2:[vf_prop_list,INDEX,key]|default} Issue-ID: SO-1393 Change-Id: Ibb5e7bb31114fa3bbd7a3e1af5f2152a98941a4b Signed-off-by: zm330 --- .../java/org/onap/so/adapters/catalogdb/catalogrest/QueryVnfcs.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'adapters/mso-catalog-db-adapter/src/main/java') diff --git a/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/catalogrest/QueryVnfcs.java b/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/catalogrest/QueryVnfcs.java index 0bf82fd8b7..dc73fe904d 100644 --- a/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/catalogrest/QueryVnfcs.java +++ b/adapters/mso-catalog-db-adapter/src/main/java/org/onap/so/adapters/catalogdb/catalogrest/QueryVnfcs.java @@ -35,7 +35,8 @@ public class QueryVnfcs extends CatalogQuery { + "\t\t\t\"modelUuid\" : ,\n" + "\t\t\t\"modelInvariantUuid\" : ,\n" + "\t\t\t\"modelVersion\" : ,\n" - + "\t\t\t\"modelCustomizationUuid\" : \n" + "\t\t}" + "\t}"; + + "\t\t\t\"modelCustomizationUuid\" : \n" + "\t\t},\n" + + "\t\t\"resourceInput\" : \n" + "\t}"; public QueryVnfcs() { super(); @@ -104,6 +105,7 @@ public class QueryVnfcs extends CatalogQuery { put(valueMap, "MODEL_INVARIANT_ID", o.getModelInvariantUUID()); put(valueMap, "MODEL_VERSION", o.getModelVersion()); put(valueMap, "MODEL_CUSTOMIZATION_UUID", o.getModelCustomizationUUID()); + put(valueMap, "RESOURCE_INPUT", o.getResourceInput()); sb.append(sep).append(this.setTemplate(TEMPLATE, valueMap)); sep = ",\n"; -- cgit 1.2.3-korg