From c069800adcfb950ddf95e9f9bf738ae2bc3431b2 Mon Sep 17 00:00:00 2001 From: hazelnutsgz Date: Thu, 18 Oct 2018 13:58:39 +0800 Subject: [PATCH] Fix the zip api inconsistency between python2 and python3 Change-Id: Ibec9ff875f8d793bc44590048f33918b975bcd40 Story: 2003432 Task: 24628 --- .../starlingx_dashboard/dashboards/admin/inventory/tabs.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/tabs.py b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/tabs.py index 4db45753..402efb05 100755 --- a/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/tabs.py +++ b/starlingx-dashboard/starlingx-dashboard/starlingx_dashboard/dashboards/admin/inventory/tabs.py @@ -528,9 +528,9 @@ class InterfacesTab(tabs.TableTab): i.host_id = host.id port_data = \ - map(list, zip(*[(p.get_port_display_name(), - p.neighbours) for p in host.ports if - i.uuid == p.interface_uuid])) + map(list, list(zip(*[(p.get_port_display_name(), + p.neighbours) for p in host.ports if + i.uuid == p.interface_uuid]))) if port_data: # Default interface