mirror of
https://github.com/ansible/awx.git
synced 2026-02-21 13:10:11 -03:30
Make sure we are decoding the project path
This commit is contained in:
@@ -152,7 +152,7 @@ class ProjectOptions(models.Model):
|
|||||||
local_path = os.path.basename(self.local_path)
|
local_path = os.path.basename(self.local_path)
|
||||||
if local_path and not local_path.startswith('.'):
|
if local_path and not local_path.startswith('.'):
|
||||||
proj_path = os.path.join(settings.PROJECTS_ROOT, local_path)
|
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
|
return proj_path
|
||||||
|
|
||||||
@property
|
@property
|
||||||
|
|||||||
Reference in New Issue
Block a user