diff options
author | maopeng zhang <zhang.maopeng1@zte.com.cn> | 2019-05-10 09:42:03 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-05-10 09:42:03 +0000 |
commit | cf9e69882bff369c948e8157273dd850a9c930cc (patch) | |
tree | 81da133fd7e526235c87387ff86ea2ca4e6a7bb6 | |
parent | 9908dbec29def4af83eaac4f5e468b3eb262a544 (diff) | |
parent | 1105bdea04c514d05f25b2636da5ab0d261140e2 (diff) |
Merge "Fix bugs for nslcm"
-rw-r--r-- | lcm/ns_vnfs/biz/terminate_nfs.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lcm/ns_vnfs/biz/terminate_nfs.py b/lcm/ns_vnfs/biz/terminate_nfs.py index c479348e..b435e67f 100644 --- a/lcm/ns_vnfs/biz/terminate_nfs.py +++ b/lcm/ns_vnfs/biz/terminate_nfs.py @@ -138,7 +138,10 @@ class TerminateVnfs(threading.Thread): raise NSLCMException('VNF terminate failed on VNFM side.') def delete_subscription(self): - SubscriptionDeletion(self.vnfm_inst_id, self.vnf_inst_id).do_biz() + try: + SubscriptionDeletion(self.vnfm_inst_id, self.vnf_inst_id).do_biz() + except Exception as e: + logger.error("delete_subscription failed: %s", e.message) def delete_data_from_db(self): NfInstModel.objects.filter(nfinstid=self.vnf_inst_id).delete() |