diff options
author | Ranjib Dey <ranjib@linux.com> | 2015-08-28 00:00:04 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-10-24 18:34:53 -0700 |
commit | de79955c2b2fdebe177340fc285a9acb66c03a5f (patch) | |
tree | fb641cd0f2a0a53568ad3d907dd361fca500252b /lib/chef/provider/execute.rb | |
parent | 484e7e5bcf068714be69f98d412b0c10b9edc20a (diff) | |
download | chef-de79955c2b2fdebe177340fc285a9acb66c03a5f.tar.gz |
dont wrap exception. preserve stackstrace
Diffstat (limited to 'lib/chef/provider/execute.rb')
-rw-r--r-- | lib/chef/provider/execute.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/provider/execute.rb b/lib/chef/provider/execute.rb index 67e5bfa842..30de0d3b9e 100644 --- a/lib/chef/provider/execute.rb +++ b/lib/chef/provider/execute.rb @@ -60,12 +60,12 @@ class Chef converge_by("execute #{description}") do begin shell_out!(command, opts) - rescue Mixlib::ShellOut::ShellCommandFailed => e + rescue Mixlib::ShellOut::ShellCommandFailed if sensitive? raise Mixlib::ShellOut::ShellCommandFailed, "Command execution failed. STDOUT/STDERR suppressed for sensitive resource" else - raise e + raise end end Chef::Log.info("#{new_resource} ran successfully") |