1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Allow ":" to be used to split patterns as well as ";" so if you are just using group names or fully explicit names you do not need to use shell quoting at all. Obviously if you use wildcards like "*" you wouldstill.

This commit is contained in:
Michael DeHaan 2012-03-03 14:26:59 -05:00
parent c839229f54
commit db57933614

View file

@ -129,7 +129,8 @@ class Runner(object):
if host_name == '':
return False
subpatterns = pattern.split(";")
pattern = pattern.replace(";",":")
subpatterns = pattern.split(":")
for subpattern in subpatterns:
# the pattern could be a real glob
if subpattern == 'all':