summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lcm/pub/msapi/sdc_run_catalog.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/lcm/pub/msapi/sdc_run_catalog.py b/lcm/pub/msapi/sdc_run_catalog.py
index e62ae6d6..e12c2142 100644
--- a/lcm/pub/msapi/sdc_run_catalog.py
+++ b/lcm/pub/msapi/sdc_run_catalog.py
@@ -27,7 +27,8 @@ def parse_nsd(csar_id, input_parameters=[]):
if ret[0] != 0:
logger.error("Status code is %s, detail is %s.", ret[2], ret[1])
raise NSLCMException("Failed to parsernsd of CSAR(%s) from catalog." % csar_id)
- return json.JSONDecoder().decode(ret[1])
+ ns_model = json.JSONDecoder().decode(ret[1])
+ return ns_model.get("model")
def parse_vnfd(csar_id, input_parameters=[]):
@@ -36,7 +37,8 @@ def parse_vnfd(csar_id, input_parameters=[]):
if ret[0] != 0:
logger.error("Status code is %s, detail is %s.", ret[2], ret[1])
raise NSLCMException("Failed to parse_vnfd of CSAR(%s) from catalog." % csar_id)
- return json.JSONDecoder().decode(ret[1])
+ vnf_model = json.JSONDecoder().decode(ret[1])
+ return vnf_model.get("model")
def query_nspackage_by_id(csar_id):