-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
follow symlinks while discovering valid playbooks #6773
follow symlinks while discovering valid playbooks #6773
Conversation
@@ -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}') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you test this with a directory loop instead of a file loop?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep, on it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Build succeeded.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
While there are valid concerns about loops, there are multiple places that could go wrong in, and I think we should seek to add permanent integration testing of those.
related: ansible#6769 Co-authored-by: Francois Herbert <francois@herbert.org.nz>
d58bb2d
to
3dd21d7
Compare
Build failed.
|
regate |
recheck |
Build succeeded.
|
Build succeeded (gate pipeline).
|
related: #6769
Co-authored-by: Francois Herbert francois@herbert.org.nz