From d21cd16a91653939ce9b24d25473275306f71b78 Mon Sep 17 00:00:00 2001 From: James Cammarata Date: Sat, 4 Jun 2016 21:05:33 -0500 Subject: [PATCH] Change uses of unicode() to to_unicode() in inventory/__init__.py --- lib/ansible/inventory/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/inventory/__init__.py b/lib/ansible/inventory/__init__.py index 27198f1c9e..b306bf255b 100644 --- a/lib/ansible/inventory/__init__.py +++ b/lib/ansible/inventory/__init__.py @@ -726,7 +726,7 @@ class Inventory(object): path = os.path.realpath(os.path.join(basedir, 'group_vars')) found_vars = set() if os.path.exists(path): - found_vars = set(os.listdir(unicode(path))) + found_vars = set(os.listdir(to_unicode(path))) return found_vars def _find_host_vars_files(self, basedir): @@ -736,7 +736,7 @@ class Inventory(object): path = os.path.realpath(os.path.join(basedir, 'host_vars')) found_vars = set() if os.path.exists(path): - found_vars = set(os.listdir(unicode(path))) + found_vars = set(os.listdir(to_unicode(path))) return found_vars def _get_hostgroup_vars(self, host=None, group=None, new_pb_basedir=False):