From: yangyan Date: Tue, 19 May 2020 07:29:19 +0000 (+0800) Subject: Upgrade the nslcm code to solve the problem of l_interface_info field is truple type X-Git-Tag: 1.4.0~9^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=e6f23acb37d1bcdccec57aba7e1abbba0cf52ffa;p=vfc%2Fnfvo%2Flcm.git Upgrade the nslcm code to solve the problem of l_interface_info field is truple type Change-Id: I1b0e1109f69985ff950330334055f5580642a572 Issue-ID: VFC-1657 Signed-off-by: yangyan --- diff --git a/lcm/ns_vnfs/biz/handle_notification.py b/lcm/ns_vnfs/biz/handle_notification.py index 56717cd1..32e58fdf 100644 --- a/lcm/ns_vnfs/biz/handle_notification.py +++ b/lcm/ns_vnfs/biz/handle_notification.py @@ -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,