summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfujinhua <fu.jinhua@zte.com.cn>2018-01-16 16:27:06 +0800
committerfujinhua <fu.jinhua@zte.com.cn>2018-01-16 16:27:06 +0800
commit370d616b96bdcfd41a8b748fb2e4f4a7cf8e8eaa (patch)
treee3f5c55b140a9aa248409b4fe61b86665b0e3ada
parent7cf487253870436fec8b5aca86c81ffec6ec240a (diff)
Fix notify lcm exception deal logic
Change-Id: I127e1afea78410b11c2e9ec22be18fb7f979e01c Issue-ID: VFC-654 Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r--lcm/ns/vnfs/notify_lcm.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lcm/ns/vnfs/notify_lcm.py b/lcm/ns/vnfs/notify_lcm.py
index 4ec80526..619c671c 100644
--- a/lcm/ns/vnfs/notify_lcm.py
+++ b/lcm/ns/vnfs/notify_lcm.py
@@ -62,11 +62,11 @@ class NotifyLcm(object):
self.exception('unexpected exception')
def get_vnfinstid(self, mnfinstid, vnfm_inst_id):
+ logger.debug("mnfinstid=%s, vnfm_inst_id=%s", mnfinstid, vnfm_inst_id)
nfinst = NfInstModel.objects.filter(mnfinstid=mnfinstid, vnfm_inst_id=vnfm_inst_id).first()
if nfinst:
return nfinst.nfinstid
- else:
- self.exception('vnfinstid not exist')
+ raise NSLCMException("vnfinstid not exist")
def exception(self, error_msg):
logger.error('Notify Lcm failed, detail message: %s' % error_msg)