From: fujinhua Date: Fri, 10 May 2019 09:10:52 +0000 (+0800) Subject: Fix bugs for nslcm X-Git-Tag: 1.3.1~6^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=1105bdea04c514d05f25b2636da5ab0d261140e2;p=vfc%2Fnfvo%2Flcm.git Fix bugs for nslcm Change-Id: Ic781ac72c492a8c88d4dbda6d3721ebea833ca65 Issue-ID: VFC-1306 Signed-off-by: fujinhua --- 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()