mirror of
https://github.com/ansible/ansible-documentation.git
synced 2026-03-26 13:18:58 +07:00
Allow multiple patterns to specified, just like Func did.
This commit is contained in:
@@ -83,8 +83,10 @@ class Runner(object):
|
||||
return False
|
||||
if not pattern:
|
||||
pattern = self.pattern
|
||||
if fnmatch.fnmatch(host_name, pattern):
|
||||
return True
|
||||
subpatterns = pattern.split(";")
|
||||
for subpattern in subpatterns:
|
||||
if fnmatch.fnmatch(host_name, subpattern):
|
||||
return True
|
||||
return False
|
||||
|
||||
def _connect(self, host):
|
||||
|
||||
Reference in New Issue
Block a user