-
Notifications
You must be signed in to change notification settings - Fork 449
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
Add error handling in Linux filesystem plugin #1047
Conversation
Signed-off-by: Jose Asuncion <jeunito@gmail.com>
Signed-off-by: Jose Asuncion <jeunito@gmail.com>
Instead of performing the which before the shell_out (which does the which again) could you look into rescuing the shell_out exceptions. We do that for a lot of the language plugins. It avoids a pile of disk IO every time we run the plugin. |
Signed-off-by: Jose Asuncion <jeunito@gmail.com>
@tas50 ok. I have changed the implementation |
Thanks |
No problem
…On Sep 6, 2017 7:17 AM, "Tim Smith" ***@***.***> wrote:
Thanks
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1047 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABKOf1ZWDDKfoN2MNe4p2KViXjjUtIa8ks5sfqllgaJpZM4O_cmV>
.
|
This is actually super terrifying. If I'm not a fan of this. I'm actually going to make a PR to make this optional and default to failing the plugin. |
PR chef#1047 allows a plugin to return partial data which may be incredibly dangerous. It's a totally reasonable thing to want, however, so we gate it behind a plugin config. However, the default behavior reverts to where it was. Signed-off-by: Phil Dibowitz <phil@ipom.com>
PR chef#1047 allows a plugin to return partial data which may be incredibly dangerous. It's a totally reasonable thing to want, however, so we gate it behind a plugin config. However, the default behavior reverts to where it was. Signed-off-by: Phil Dibowitz <phil@ipom.com>
PR chef#1047 allows a plugin to return partial data which may be incredibly dangerous. It's a totally reasonable thing to want, however, so we gate it behind a plugin config. However, the default behavior reverts to where it was. Signed-off-by: Phil Dibowitz <phil@ipom.com>
PR #1047 allows a plugin to return partial data which may be incredibly dangerous. It's a totally reasonable thing to want, however, so we gate it behind a plugin config. However, the default behavior reverts to where it was. Signed-off-by: Phil Dibowitz <phil@ipom.com>
Description
Add error handling in Linux filesystem plugin for when a command does not exist.
Issues Resolved
#1011