mirror of
https://github.com/ansible/awx.git
synced 2026-02-19 04:00:06 -03:30
Revert "follow symlinks while discovering valid playbooks"
This reverts commit 3dd21d720e.
This commit is contained in:
@@ -199,7 +199,7 @@ class ProjectOptions(models.Model):
|
|||||||
results = []
|
results = []
|
||||||
project_path = self.get_project_path()
|
project_path = self.get_project_path()
|
||||||
if project_path:
|
if project_path:
|
||||||
for dirpath, dirnames, filenames in os.walk(smart_str(project_path), followlinks=True):
|
for dirpath, dirnames, filenames in os.walk(smart_str(project_path)):
|
||||||
if skip_directory(dirpath):
|
if skip_directory(dirpath):
|
||||||
continue
|
continue
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ def could_be_playbook(project_path, dir_path, filename):
|
|||||||
matched = True
|
matched = True
|
||||||
break
|
break
|
||||||
except IOError:
|
except IOError:
|
||||||
logger.exception(f'failed to open {playbook_path}')
|
|
||||||
return None
|
return None
|
||||||
if not matched:
|
if not matched:
|
||||||
return None
|
return None
|
||||||
|
|||||||
Reference in New Issue
Block a user