mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 14:22:46 +00:00
Make sure empty non-quoted tokens are not added to the arg params list
This commit is contained in:
@@ -139,7 +139,7 @@ def split_args(args):
|
|||||||
|
|
||||||
# finally, if we're at zero depth for all blocks and not inside quotes, and have not
|
# finally, if we're at zero depth for all blocks and not inside quotes, and have not
|
||||||
# yet appended anything to the list of params, we do so now
|
# yet appended anything to the list of params, we do so now
|
||||||
if not (print_depth or block_depth or comment_depth) and not inside_quotes and not appended:
|
if not (print_depth or block_depth or comment_depth) and not inside_quotes and not appended and token != '':
|
||||||
params.append(token)
|
params.append(token)
|
||||||
|
|
||||||
# If we're done and things are not at zero depth or we're still inside quotes,
|
# If we're done and things are not at zero depth or we're still inside quotes,
|
||||||
|
|||||||
Reference in New Issue
Block a user