mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
Revert "follow symlinks while discovering valid playbooks"
This reverts commit 3dd21d720eb5351e63f9f31c4e601a67965dac56.
This commit is contained in:
parent
c2c6f2a197
commit
53be991cfe
@ -199,7 +199,7 @@ class ProjectOptions(models.Model):
|
||||
results = []
|
||||
project_path = self.get_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):
|
||||
continue
|
||||
for filename in filenames:
|
||||
|
||||
@ -64,7 +64,6 @@ def could_be_playbook(project_path, dir_path, filename):
|
||||
matched = True
|
||||
break
|
||||
except IOError:
|
||||
logger.exception(f'failed to open {playbook_path}')
|
||||
return None
|
||||
if not matched:
|
||||
return None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user