summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-04-04 22:33:39 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2006-04-04 22:33:39 +0000
commitb5c759b76d53c486f15643dfdce129ac4cc157fc (patch)
treec561d5962af1dc2aba7d7a3e582d184749378870
parentd8b4b0dbf35b2b183cd62adf591ebf4650448a0d (diff)
downloadpuppet-b5c759b76d53c486f15643dfdce129ac4cc157fc.tar.gz
puppet-b5c759b76d53c486f15643dfdce129ac4cc157fc.tar.xz
puppet-b5c759b76d53c486f15643dfdce129ac4cc157fc.zip
Fixing #108
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1066 980ebf18-57e1-0310-9a29-db15c13687c0
-rwxr-xr-xlib/puppet/type/exec.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/puppet/type/exec.rb b/lib/puppet/type/exec.rb
index 5fe57bb26..d5c2ea7d1 100755
--- a/lib/puppet/type/exec.rb
+++ b/lib/puppet/type/exec.rb
@@ -138,12 +138,8 @@ module Puppet
loglevel = @parent[:loglevel]
if status.exitstatus.to_s != self.should.to_s
- err("%s returned %s instead of %s" %
+ self.fail("%s returned %s instead of %s" %
[self.parent[:command], status.exitstatus, self.should.to_s])
-
- # if we've had a failure, up the log level
- loglevel = :err
- event = :failed_command
end
if log = @parent[:logoutput]