diff options
author | hewei-cmss <hewei@cmss.chinamobile.com> | 2019-07-10 15:40:29 +0800 |
---|---|---|
committer | hewei-cmss <hewei@cmss.chinamobile.com> | 2019-07-10 15:40:29 +0800 |
commit | ac64bf8b7cad1b00f693ed8e3c3e04e2272d01b5 (patch) | |
tree | 2d063f36ae502bdaf94c1878d6db54568a251954 | |
parent | 2c399c2ac5030dd1150afb2ac46d9212da017477 (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.py | 4 |
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 = {} |