Fix vfc-lcm log bug 27/25627/1
authorying.yunlong <ying.yunlong@zte.com.cn>
Wed, 6 Dec 2017 01:04:44 +0000 (09:04 +0800)
committerying.yunlong <ying.yunlong@zte.com.cn>
Wed, 6 Dec 2017 01:04:44 +0000 (09:04 +0800)
Change-Id: I371dcf302ab13b8c34cdfddf3e45efb0c4c4cbf4
Issue-ID: VFC-602
Signed-off-by: ying.yunlong <ying.yunlong@zte.com.cn>
lcm/ns/vnfs/notify_lcm.py

index ee4c5ee..f494443 100644 (file)
@@ -88,7 +88,6 @@ class NotifyLcm(object):
                             instid=self.vnf_instid, vmname=vmName, hostid='1').save()
                 if REPORT_TO_AAI:
                     self.create_vserver_in_aai(vimId, vmId, vmName)
-                logger.debug("Success to create all vserver to aai.")
             elif changeType == 'removed':
                 VNFCInstModel.objects.filter(vnfcinstanceid=vnfcInstanceId).delete()
             elif changeType == 'modified':
@@ -97,6 +96,7 @@ class NotifyLcm(object):
                                                                                    vmid=vmId)
             else:
                 self.exception('affectedVnfc struct error: changeType not in {added,removed,modified}')
+        logger.debug("Success to create all vserver to aai.")
 
     def update_Vl(self):
         for vl in self.affectedVl: