Fix the zip api inconsistency between python2 and python3

Change-Id: Ibec9ff875f8d793bc44590048f33918b975bcd40
Story: 2003432
Task: 24628
This commit is contained in:
hazelnutsgz 2018-10-18 13:58:39 +08:00
parent dfe0ebc08a
commit c069800adc
1 changed files with 3 additions and 3 deletions

View File

@ -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