-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
Fixes #5159 file
module: Don't catch SystemExit
#5160
Conversation
This fixes issue ansible#5159.
@JensRantil it would be nice to include the content of "e" in the exit message. |
@jctanner Good point. Absolutely. Is there a standard keyword for that? Will I need to translate Also, maybe |
You can cast e to a string:
Yes, fail_json would be a better way to exit if there is a true exception. |
@jctanner Fixed. Holler if you have any other corrections. |
Fixes #5159 `file` module: Don't catch `SystemExit`
@JensRantil thank you! Tested with:
|
Fixes #5159 `file` module: Don't catch `SystemExit`
This fixes issue #5159.