commit 00c487f5787ef2051a299a82c601ca006908fce2
Author: Ondrej Lichtner <olichtne(a)redhat.com>
Date: Thu Oct 23 13:32:55 2014 +0200
SlavePool: machine parameter fix
This is a followup to the previous patch that was posted by Artem.
The same error he found also appears in the check_machine_compatibility
method.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
Signed-off-by: Jiri Pirko <jiri(a)resnulli.us>
lnst/Controller/SlavePool.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/lnst/Controller/SlavePool.py b/lnst/Controller/SlavePool.py
index 87a2b33..53f402f 100644
--- a/lnst/Controller/SlavePool.py
+++ b/lnst/Controller/SlavePool.py
@@ -525,7 +525,7 @@ class SetupMapper(object):
def _check_machine_compatibility(self, req_id, pool_id):
req_machine = self._mreqs[req_id]
pool_machine = self._pool[pool_id]
- for param, value in req_machine["params"]:
+ for param, value in req_machine["params"].iteritems():
if param in pool_machine["params"] and\
value != pool_machine["params"][param]:
return False
Show replies by date