follow symlinks while discovering valid playbooks

related: https://github.com/ansible/awx/pull/6769

Co-authored-by: Francois Herbert <francois@herbert.org.nz>
This commit is contained in:
Ryan Petrello
2020-04-21 10:49:05 -04:00
parent 9cfecb5590
commit 3dd21d720e
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -64,6 +64,7 @@ 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