Make sure the basedir is unicode

Fixes #10773
This commit is contained in:
James Cammarata 2015-07-12 16:39:27 -04:00
commit f40b66d841
3 changed files with 5 additions and 3 deletions

View file

@ -129,7 +129,7 @@ class RoleDefinition(Base, Become, Conditional, Taggable):
return (role_name, role_path)
else:
# we always start the search for roles in the base directory of the playbook
role_search_paths = [os.path.join(self._loader.get_basedir(), 'roles'), './roles', './']
role_search_paths = [os.path.join(self._loader.get_basedir(), u'roles'), u'./roles', u'./']
# also search in the configured roles path
if C.DEFAULT_ROLES_PATH: