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 == '': if host_name == '':
return False return False
subpatterns = pattern.split(";") pattern = pattern.replace(";",":")
subpatterns = pattern.split(":")
for subpattern in subpatterns: for subpattern in subpatterns:
# the pattern could be a real glob # the pattern could be a real glob
if subpattern == 'all': if subpattern == 'all':