From f129977e2bac77625d513522912652566616dbc7 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 4 Jan 2017 14:35:05 -0800 Subject: [PATCH] Fix 4d355f8bf2853bff615d1899b072e276ba145eaa default values can contain nonstrings and those should not be converted via to_text. --- lib/ansible/constants.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/constants.py b/lib/ansible/constants.py index 4938395cc1..7c35f87fac 100644 --- a/lib/ansible/constants.py +++ b/lib/ansible/constants.py @@ -135,7 +135,7 @@ def _get_config(p, section, key, env_var, default): except: pass - return to_text(value, errors='surrogate_or_strict') + return to_text(value, errors='surrogate_or_strict', nonstring='passthru') def load_config_file():