commit a070e9ccd02ddffb14a6a2ca571049a64bbaec7e
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Mon Nov 3 14:29:33 2014 +0100
InterfaceManager: fix iteration over tmp_mapping
This patch fixes "Too many values to unpack" exceptions that sometimes
occur and leave lnst-slave in an unresponsive state.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Slave/InterfaceManager.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lnst/Slave/InterfaceManager.py b/lnst/Slave/InterfaceManager.py
index 68866b8..489c697 100644
--- a/lnst/Slave/InterfaceManager.py
+++ b/lnst/Slave/InterfaceManager.py
@@ -133,7 +133,7 @@ class InterfaceManager(object):
ret = {}
for if_id, if_index in self._id_mapping.iteritems():
ret[if_id] = self._devices[if_index]
- for if_id, dev in self._tmp_mapping:
+ for if_id in self._tmp_mapping:
ret[if_id] = self._tmp_mapping[if_id]
return ret
Show replies by date