Revert "follow symlinks while discovering valid playbooks"

This reverts commit 3dd21d720e.
This commit is contained in:
Ryan Petrello
2020-05-20 16:30:44 -04:00
parent c2c6f2a197
commit 53be991cfe
2 changed files with 1 additions and 2 deletions

View File

@@ -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:

View File

@@ -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