diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2017-12-04 15:15:02 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2017-12-04 15:15:02 +0800 |
commit | 677cd84bc57996ff551d2a960c6a9f6d433908d8 (patch) | |
tree | 1b413311258d772ef04211f72f7b3322a9eb9074 | |
parent | 92518a9b3013ad2ca1238fd9e164a58129d8491e (diff) |
Refactor ns terminate of vfc-nfvo-lcm
Change-Id: I396293b880a3f8744d09696019e06a9b38dcacb3
Issue-ID: VFC-608
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/ns/vnfs/terminate_nfs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/ns/vnfs/terminate_nfs.py b/lcm/ns/vnfs/terminate_nfs.py index 02dcc027..89d6de20 100644 --- a/lcm/ns/vnfs/terminate_nfs.py +++ b/lcm/ns/vnfs/terminate_nfs.py @@ -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 |