From db57933614747c9cd7e29e0197aee0a2b372a943 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Sat, 3 Mar 2012 14:26:59 -0500 Subject: [PATCH] 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. --- lib/ansible/runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/runner.py b/lib/ansible/runner.py index 88aa0739e0..08e7fcd7d6 100755 --- a/lib/ansible/runner.py +++ b/lib/ansible/runner.py @@ -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':