diff options
author | fengyuanxing <feng.yuanxing@zte.com.cn> | 2018-03-06 11:51:13 +0800 |
---|---|---|
committer | fengyuanxing <feng.yuanxing@zte.com.cn> | 2018-03-06 11:51:13 +0800 |
commit | 3b4b25bc56e049f16d72267a7617f3d8d44a7383 (patch) | |
tree | 220f987a9002c71b3c7c4f460dac1f6ed687f1b4 | |
parent | 14b946e3014c7f0fbb1e1187b400e7ca6e099e63 (diff) |
Fix a bug
Change-Id: I1b6a23e29211e132afeaab4b1dd13b74d557f0cb
Issue-ID: VFC-784
Signed-off-by: fengyuanxing <feng.yuanxing@zte.com.cn>
-rw-r--r-- | lcm/pub/msapi/catalog.py | 2 |
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]) |