Puppet: System Administration Automated

Support

Ticket #903: exec.patch

File exec.patch, 0.9 kB (added by hrvojehr, 1 year ago)
  • exec.rb

    old new  
    114114                end 
    115115 
    116116                loglevel = @resource[:loglevel] 
    117                 if status.exitstatus.to_s != self.should.to_s 
    118                     self.fail("%s returned %s instead of %s" % 
    119                         [self.resource[:command], status.exitstatus, self.should.to_s]) 
    120                 end 
    121117 
    122118                if log = @resource[:logoutput] 
    123119                    if log == :true 
     
    130126                    end 
    131127                end 
    132128 
     129                if status.exitstatus.to_s != self.should.to_s 
     130                    self.fail("%s returned %s instead of %s" % 
     131                        [self.resource[:command], status.exitstatus, self.should.to_s]) 
     132                end 
    133133                return event 
    134134            end 
    135135        end