]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commitdiff
Fix uninitialized variable reference
authorKoert van der Veer <koert@cloudvps.com>
Wed, 16 Apr 2014 08:57:16 +0000 (10:57 +0200)
committerKoert van der Veer <koert@cloudvps.com>
Wed, 16 Apr 2014 09:19:12 +0000 (11:19 +0200)
This was probably a copy&paste error. While physical_network is used in
earlier loops, it isn't defined here. The identically named member variable was
probably intended.

Change-Id: I09e38321cf8670c62f4fdf9d99da1df737b2fc68
Closes-Bug: #1308421

neutron/plugins/linuxbridge/db/l2network_db_v2.py

index 4ad72bb9ca2805cc3f4c3912cdba988d53f728fd..c9608cabd0b091114b3bef47a6882bebd314f25e 100644 (file)
@@ -84,7 +84,7 @@ def sync_network_states(network_vlan_ranges):
                                 "network %(physical_network)s"
                                 " from pool"),
                               {'vlan_id': state.vlan_id,
-                               'physical_network': physical_network})
+                               'physical_network': state.physical_network})
                     session.delete(state)