Commit cb90df23 by Michael DeHaan

Allow multiple patterns to specified, just like Func did.

parent 70ec508e
......@@ -83,7 +83,9 @@ class Runner(object):
return False
if not pattern:
pattern = self.pattern
if fnmatch.fnmatch(host_name, pattern):
subpatterns = pattern.split(";")
for subpattern in subpatterns:
if fnmatch.fnmatch(host_name, subpattern):
return True
return False
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment