This makes sure we use the same types in Python 2 and 3, prevents TypeErrors
from happening, and should have no performance impact since the the lists are
quite small anyway.
Change-Id: I4e8563231a22a440b4f22b76b17f76f2ba45e606
Blueprint: neutron-python3
port_ids_to_devices = dict(
(self._device_to_port_id(context, device), device)
for device in devices)
- port_ids = port_ids_to_devices.keys()
+ port_ids = list(port_ids_to_devices.keys())
ports = db.get_ports_and_sgs(context, port_ids)
for port in ports:
# map back to original requested id