mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Split args on single spaces only
This commit is contained in:
parent
19bdc92a21
commit
3714c0742f
1 changed files with 1 additions and 3 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue