From cf5cd3fcdcea49b161b10ec13a1dfe3d186f3f68 Mon Sep 17 00:00:00 2001 From: Matthew Jones Date: Tue, 16 Dec 2014 13:15:53 -0500 Subject: [PATCH] Make sure we are decoding the project path --- awx/main/models/projects.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/main/models/projects.py b/awx/main/models/projects.py index fec941ecaa..64bcdd7f39 100644 --- a/awx/main/models/projects.py +++ b/awx/main/models/projects.py @@ -152,7 +152,7 @@ class ProjectOptions(models.Model): local_path = os.path.basename(self.local_path) if local_path and not local_path.startswith('.'): proj_path = os.path.join(settings.PROJECTS_ROOT, local_path) - if not check_if_exists or os.path.exists(proj_path): + if not check_if_exists or os.path.exists(proj_path.decode('utf-8')): return proj_path @property