From 1b743436b9e18c38b7ebc449bbc10d2cf0110562 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Wed, 25 Nov 2015 07:48:52 -0800 Subject: [PATCH] Do not double transform to unicode --- lib/ansible/playbook/base.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/playbook/base.py b/lib/ansible/playbook/base.py index 83b7ff3073..58cfec0078 100644 --- a/lib/ansible/playbook/base.py +++ b/lib/ansible/playbook/base.py @@ -27,7 +27,7 @@ import uuid from functools import partial from inspect import getmembers -from ansible.compat.six import iteritems, string_types, text_type +from ansible.compat.six import iteritems, string_types from jinja2.exceptions import UndefinedError @@ -311,7 +311,7 @@ class Base: # and make sure the attribute is of the type it should be if value is not None: if attribute.isa == 'string': - value = text_type(to_unicode(value)) + value = to_unicode(value) elif attribute.isa == 'int': value = int(value) elif attribute.isa == 'float':