Merge "Fix vfc-lcm log bug"
authorFu Jinhua <fu.jinhua@zte.com.cn>
Wed, 6 Dec 2017 01:12:51 +0000 (01:12 +0000)
committerGerrit Code Review <gerrit@onap.org>
Wed, 6 Dec 2017 01:12:51 +0000 (01:12 +0000)
lcm/ns/vnfs/notify_lcm.py

index 49a4e72..f2007f3 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: