Mercurial > bitten > bitten-test
changeset 85:acb7b67b8152
Fix matching of slave properties against target platform rules.
author | cmlenz |
---|---|
date | Fri, 08 Jul 2005 18:21:59 +0000 |
parents | 30d09249de80 |
children | 110bfa3cbc32 |
files | bitten/master.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/master.py +++ b/bitten/master.py @@ -127,11 +127,11 @@ self.slaves[platform.id] = set() logging.debug('Matching slave %s against rules: %s', handler.name, platform.rules) - match = False + match = True for property, pattern in ifilter(None, platform.rules): try: if not re.match(pattern, handler.info.get(property)): - match = any_match = True + match = any_match = False break except re.error, e: logging.error('Invalid platform matching pattern "%s"',