summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-10-16 16:38:54 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-10-16 16:38:54 +0800
commit0a04cee22918e6155c4a363166492c25d49572bc (patch)
tree3d6056755fc41969f380f522263821b747cc26cd
parentc16d48b3ed60829a9636a073af06bd6301f17531 (diff)
Fix pnf package delete logic
Change-Id: If3a0d5ef87812f8f898cd832aceba70d4fd7f8c9 Issue-ID: VFC-1151 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--catalog/packages/biz/pnf_descriptor.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/catalog/packages/biz/pnf_descriptor.py b/catalog/packages/biz/pnf_descriptor.py
index fe773447..78b55b0c 100644
--- a/catalog/packages/biz/pnf_descriptor.py
+++ b/catalog/packages/biz/pnf_descriptor.py
@@ -96,6 +96,8 @@ class PnfDescriptor(object):
nsd_model = None
if ns_pkg.nsdModel:
nsd_model = json.JSONDecoder().decode(ns_pkg.nsdModel)
+ if not nsd_model:
+ continue
pnf_info_ids = []
for pnf in nsd_model['pnfs']:
pnfd_id = pnf["properties"]["id"]