# HG changeset patch # User cmlenz # Date 1120846919 0 # Node ID acb7b67b8152b15db034a68bc9e8b075669899e6 # Parent 30d09249de8058834f39fdab98bf350df4002491 Fix matching of slave properties against target platform rules. diff --git a/bitten/master.py b/bitten/master.py --- 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"',