Commit cb90df23 by Michael DeHaan

Allow multiple patterns to specified, just like Func did.

parent 70ec508e
...@@ -83,8 +83,10 @@ class Runner(object): ...@@ -83,8 +83,10 @@ class Runner(object):
return False return False
if not pattern: if not pattern:
pattern = self.pattern pattern = self.pattern
if fnmatch.fnmatch(host_name, pattern): subpatterns = pattern.split(";")
return True for subpattern in subpatterns:
if fnmatch.fnmatch(host_name, subpattern):
return True
return False return False
def _connect(self, host): def _connect(self, host):
......
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