Refactor ns terminate of vfc-nfvo-lcm 13/25413/1
authorfujinhua <fu.jinhua@zte.com.cn>
Mon, 4 Dec 2017 07:15:02 +0000 (15:15 +0800)
committerfujinhua <fu.jinhua@zte.com.cn>
Mon, 4 Dec 2017 07:15:02 +0000 (15:15 +0800)
Change-Id: I396293b880a3f8744d09696019e06a9b38dcacb3
Issue-ID: VFC-608
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
lcm/ns/vnfs/terminate_nfs.py

index 02dcc02..89d6de2 100644 (file)
@@ -57,9 +57,9 @@ class TerminateVnfs(threading.Thread):
             self.delete_data_from_db()
         except NSLCMException as e:
             self.set_job_err(e.message)
-        except Exception:
+        except Exception as ex:
             logger.error(traceback.format_exc())
-            self.set_job_err('unexpected exception')
+            self.set_job_err(ex.message)
 
     def set_vnf_status(self, vnf_inst_info):
         vnf_status = vnf_inst_info.status