summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryangyan <dengyuanhong@chinamobile.com>2020-05-19 15:29:19 +0800
committeryangyan <dengyuanhong@chinamobile.com>2020-05-19 15:29:29 +0800
commite6f23acb37d1bcdccec57aba7e1abbba0cf52ffa (patch)
tree4ad3756ef18c7c3a140d3549cde55ea99ee9150d
parent1f55bd9564c95d4eabd3addfe6d2542e9db853b5 (diff)
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 <dengyuanhong@chinamobile.com>
-rw-r--r--lcm/ns_vnfs/biz/handle_notification.py2
1 files changed, 1 insertions, 1 deletions
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,