From 3714c0742fe962d3593ae7b4d28c4c0b1f0c5771 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 25 Jul 2014 13:13:15 -0500 Subject: [PATCH] Split args on single spaces only --- lib/ansible/utils/splitter.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/ansible/utils/splitter.py b/lib/ansible/utils/splitter.py index 9cd218291c..d102dff26c 100644 --- a/lib/ansible/utils/splitter.py +++ b/lib/ansible/utils/splitter.py @@ -75,7 +75,7 @@ def split_args(args): do_decode = True except UnicodeDecodeError: do_decode = False - tokens = args.split() + tokens = args.split(' ') # iterate over the tokens, and reassemble any that may have been # split on a space inside a jinja2 block. @@ -95,8 +95,6 @@ def split_args(args): # split occurred within quotes or a jinja2 block of some kind for token in tokens: - token = token.strip() - # store the previous quoting state for checking later was_inside_quotes = inside_quotes quote_char = _get_quote_state(token, quote_char)