aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lcm/pub/msapi/catalog.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lcm/pub/msapi/catalog.py b/lcm/pub/msapi/catalog.py
index 0c5899b0..30828ee7 100644
--- a/lcm/pub/msapi/catalog.py
+++ b/lcm/pub/msapi/catalog.py
@@ -109,7 +109,7 @@ def get_servicetemplate(nsd_id):
# Gets scaling map json from ns package according to nsd id.
def get_scalingmap_json_package(ns_InstanceId):
- csar_id = NSInstModel.objects.filter(id=ns_InstanceId)[0]["nspackage_id"]
+ csar_id = NSInstModel.objects.filter(id=ns_InstanceId)[0].nspackage_id
downloadUrl = query_csar_from_catalog(csar_id, "packageInfo")["downloadUrl"]
ret = req_by_msb(downloadUrl, 'GET')
scalingmap_json = json.JSONDecoder().decode(ret[1])