diff options
author | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-04 22:33:39 +0000 |
---|---|---|
committer | luke <luke@980ebf18-57e1-0310-9a29-db15c13687c0> | 2006-04-04 22:33:39 +0000 |
commit | b5c759b76d53c486f15643dfdce129ac4cc157fc (patch) | |
tree | c561d5962af1dc2aba7d7a3e582d184749378870 | |
parent | d8b4b0dbf35b2b183cd62adf591ebf4650448a0d (diff) | |
download | puppet-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-x | lib/puppet/type/exec.rb | 6 |
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] |