summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhewei-cmss <hewei@cmss.chinamobile.com>2019-07-10 15:40:29 +0800
committerhewei-cmss <hewei@cmss.chinamobile.com>2019-07-10 15:40:29 +0800
commitac64bf8b7cad1b00f693ed8e3c3e04e2272d01b5 (patch)
tree2d063f36ae502bdaf94c1878d6db54568a251954
parent2c399c2ac5030dd1150afb2ac46d9212da017477 (diff)
Avoid inst pnf exception in inst ns
Issue-ID: VFC-1443 Signed-off-by: hewei-cmss <hewei@cmss.chinamobile.com> Change-Id: I5a826f5364958587494c9163527840d825ebfef3
-rw-r--r--lcm/ns/biz/ns_instant.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/ns/biz/ns_instant.py b/lcm/ns/biz/ns_instant.py
index ada85e82..23060819 100644
--- a/lcm/ns/biz/ns_instant.py
+++ b/lcm/ns/biz/ns_instant.py
@@ -284,8 +284,8 @@ class InstantNSService(object):
return {'vlCount': str(vls), 'sfcCount': str(sfcs), 'vnfCount': str(vnfs), 'pnfCount': str(pnfs)}
def init_pnf_para(self, plan_dict):
- pnfs_in_input = ignore_case_get(self.req_data, "addpnfData")
- pnfs_in_nsd = ignore_case_get(plan_dict, "pnfs")
+ pnfs_in_input = ignore_case_get(self.req_data, "addpnfData", [])
+ pnfs_in_nsd = ignore_case_get(plan_dict, "pnfs", [])
logger.debug("addpnfData ; %s" % pnfs_in_input)
logger.debug("pnfs_in_nsd ; %s" % pnfs_in_nsd)
pnfs = {}