From c655e9143607b9c3f6c5fdb4c125bdafd451f9e5 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Mon, 2 Feb 2015 14:14:18 -0800 Subject: [PATCH] For now throw an exception if decoding a non-utf8 extra var --- v2/bin/ansible-playbook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/v2/bin/ansible-playbook b/v2/bin/ansible-playbook index 5292b84cce3..eafccedcba5 100755 --- a/v2/bin/ansible-playbook +++ b/v2/bin/ansible-playbook @@ -106,7 +106,7 @@ def main(args): extra_vars = {} for extra_vars_opt in options.extra_vars: - extra_vars_opt = to_unicode(extra_vars_opt) + extra_vars_opt = to_unicode(extra_vars_opt, errors='strict') if extra_vars_opt.startswith(u"@"): # Argument is a YAML file (JSON is a subset of YAML) data = loader.load_from_file(extra_vars_opt[1:])