commit 1e273927f1647fa6afe95e2023156f24e7ffd05b
Author: Jiri Prochazka <jprochaz(a)redhat.com>
Date: Tue Nov 4 16:11:20 2014 +0100
Fixed bad condition when matching guests
If required params for machines were entered, current condition ignored them.
Signed-off-by: Jiri Prochazka <jprochaz(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 682a91e..9c54629 100644
--- a/lnst/Controller/SlavePool.py
+++ b/lnst/Controller/SlavePool.py
@@ -523,7 +523,7 @@ class SetupMapper(object):
req_machine = self._mreqs[req_id]
pool_machine = self._pool[pool_id]
for param, value in req_machine["params"].iteritems():
- if param in pool_machine["params"] and\
+ if param not in pool_machine["params"] or\
value != pool_machine["params"][param]:
return False
return True
Show replies by date