]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
_get_dvr_sync_data: Return a list, rather than dict_values for python3
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Tue, 4 Aug 2015 09:47:51 +0000 (18:47 +0900)
committerYAMAMOTO Takashi <yamamoto@midokura.com>
Tue, 4 Aug 2015 09:50:40 +0000 (18:50 +0900)
Align with the non-dvr case.

Blueprint: neutron-python3
Change-Id: I37d24875be530f200118374e9f8046f32a902c8e

neutron/db/l3_dvr_db.py

index 47fbbc63f2e9676f4ab9f8fac22d72a1be5d4730..ff20cbb224c780dc8d699ee5de63713e70988676 100644 (file)
@@ -475,7 +475,7 @@ class L3_NAT_with_dvr_db_mixin(l3_db.L3_NAT_db_mixin,
         ports_to_populate += interfaces
         self._populate_subnets_for_ports(context, ports_to_populate)
         self._process_interfaces(routers_dict, interfaces)
-        return routers_dict.values()
+        return list(routers_dict.values())
 
     def _get_vm_port_hostid(self, context, port_id, port=None):
         """Return the portbinding host_id."""