summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRanjib Dey <ranjib@linux.com>2015-08-28 00:00:04 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2015-10-24 18:34:53 -0700
commitde79955c2b2fdebe177340fc285a9acb66c03a5f (patch)
treefb641cd0f2a0a53568ad3d907dd361fca500252b
parent484e7e5bcf068714be69f98d412b0c10b9edc20a (diff)
downloadchef-de79955c2b2fdebe177340fc285a9acb66c03a5f.tar.gz
dont wrap exception. preserve stackstrace
-rw-r--r--lib/chef/provider/execute.rb4
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")