protocols/ovsdb: Fix shadow loop variables [F402]

Signed-off-by: Jason Kölker <jason@koelker.net>
Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
This commit is contained in:
Jason Kölker 2016-03-04 00:41:22 +00:00 committed by FUJITA Tomonori
parent db02d0f487
commit 57c6897210
2 changed files with 5 additions and 5 deletions

View File

@ -261,9 +261,9 @@ class RemoteOvsdb(app_manager.RyuApp):
hub.sleep(0.1)
continue
for event in events:
ev = event[0]
args = event[1]
for e in events:
ev = e[0]
args = e[1]
self._submit_event(ev(self.system_id, *args))
hub.sleep(0)

View File

@ -137,8 +137,8 @@ class OVSDB(app_manager.RyuApp):
self.main_thread = None
# NOTE(jkoelker) Stop all the clients
for client in self._clients.values():
client.stop()
for c in self._clients.values():
c.stop()
# NOTE(jkoelker) super will only take care of the event and joining now
super(OVSDB, self).stop()