Project

General

Profile

« Previous | Next » 

Revision eb7410a3

Added by Dominic Cleal about 10 years ago

fixes #3851 - increment error counter for non-resource Puppet errors

View differences:

templates/foreman-report_v2.rb.erb
if @format > 1 and report.respond_to?(:status) and report.status == "failed"
report_status["failed"] += 1
end
# fix for Puppet non-resource errors (i.e. failed catalog fetches before falling back to cache)
report_status["failed"] += report.logs.find_all {|l| l.source == 'Puppet' && l.level.to_s == 'err' }.count
return report_status
end

Also available in: Unified diff