Add option to follow symlinks when scanning for playbooks

This commit is contained in:
Francois Herbert
2020-05-21 12:03:45 +12:00
parent 7939f2d320
commit 4042e78757
4 changed files with 17 additions and 1 deletions

View File

@@ -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)):
for dirpath, dirnames, filenames in os.walk(smart_str(project_path, followlinks=settings.AWX_SHOW_PLAYBOOK_LINKS)):
if skip_directory(dirpath):
continue
for filename in filenames: