mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 05:12:45 +00: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