From fbc9553bd43c1e59051120d340f5c3fe9baf0d1d Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Mon, 30 Nov 2015 10:33:36 -0500 Subject: [PATCH] Use text_type instead of unicode --- lib/ansible/vars/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/vars/__init__.py b/lib/ansible/vars/__init__.py index a6bbdff8bc5..34ed3628d82 100644 --- a/lib/ansible/vars/__init__.py +++ b/lib/ansible/vars/__init__.py @@ -34,7 +34,7 @@ except ImportError: from ansible import constants as C from ansible.cli import CLI -from ansible.compat.six import string_types +from ansible.compat.six import string_types, text_type from ansible.errors import AnsibleError, AnsibleParserError, AnsibleUndefinedVariable, AnsibleFileNotFound from ansible.inventory.host import Host from ansible.plugins import lookup_loader @@ -385,7 +385,7 @@ class VariableManager: if task._role: variables['role_name'] = task._role.get_name() variables['role_path'] = task._role._role_path - variables['role_uuid'] = unicode(task._role._uuid) + variables['role_uuid'] = text_type(task._role._uuid) if self._inventory is not None: variables['inventory_dir'] = self._inventory.basedir()