From b06f7688cd90ffb887295d496b96187881c0dbc5 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 19 Dec 2017 14:26:30 -0800 Subject: [PATCH] Fix a unicodeerror so that we get the correct error message (#34058) Fixes #33044 --- lib/ansible/parsing/splitter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/parsing/splitter.py b/lib/ansible/parsing/splitter.py index 0adb4bf84b6..2e27d4b6f3f 100644 --- a/lib/ansible/parsing/splitter.py +++ b/lib/ansible/parsing/splitter.py @@ -261,6 +261,6 @@ def split_args(args): # If we're done and things are not at zero depth or we're still inside quotes, # raise an error to indicate that the args were unbalanced if print_depth or block_depth or comment_depth or inside_quotes: - raise AnsibleParserError("failed at splitting arguments, either an unbalanced jinja2 block or quotes: {}".format(args)) + raise AnsibleParserError(u"failed at splitting arguments, either an unbalanced jinja2 block or quotes: {0}".format(args)) return params