From 7344baeffa4d88de55fbf4794cffae72a1ccb196 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Fri, 25 Jul 2014 15:23:10 -0500 Subject: [PATCH] Make sure empty non-quoted tokens are not added to the arg params list --- lib/ansible/utils/splitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/utils/splitter.py b/lib/ansible/utils/splitter.py index d102dff26cf..152fa4782d1 100644 --- a/lib/ansible/utils/splitter.py +++ b/lib/ansible/utils/splitter.py @@ -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 # 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) # If we're done and things are not at zero depth or we're still inside quotes,