Upgrade the nslcm code to solve the problem of l_interface_info field is truple type 56/107856/1
authoryangyan <dengyuanhong@chinamobile.com>
Tue, 19 May 2020 07:29:19 +0000 (15:29 +0800)
committeryangyan <dengyuanhong@chinamobile.com>
Tue, 19 May 2020 07:29:29 +0000 (15:29 +0800)
Change-Id: I1b0e1109f69985ff950330334055f5580642a572
Issue-ID: VFC-1657
Signed-off-by: yangyan <dengyuanhong@chinamobile.com>
lcm/ns_vnfs/biz/handle_notification.py

index 56717cd..32e58fd 100644 (file)
@@ -163,7 +163,7 @@ class HandleVnfLcmOocNotification(object):
     def del_l_interface_from_aai(self, vnf_id, l_interface_name):
         logger.debug("Delete l_interface::delete_l_interface_in_aai[%s] in aai.", l_interface_name)
         try:
-            l_interface_info = query_l_interface_aai(vnf_id, l_interface_name)
+            l_interface_info = query_l_interface_aai(vnf_id, l_interface_name)[0]
             resource_version = l_interface_info.get("resource-version", '')
             resp_data, resp_status = delete_l_interface_aai(vnf_id, l_interface_name, resource_version)
             logger.debug("Delete l_interface[%s] from aai successfully, status: %s", l_interface_name,