Project

General

Profile

« Previous | Next » 

Revision 783fb4aa

Added by Marek Hulán over 8 years ago

Fixes #11704 - consider no reports as warning if reports are expected

View differences:

app/models/host_status/configuration_status.rb
elsif out_of_sync?
# out of sync
return HostStatus::Global::WARN
elsif no_reports? && host.puppet_proxy
# no reports and puppet is set
return HostStatus::Global::WARN
else
# active, pending, no changes, no reports
# active, pending, no changes, no reports (and puppet proxy is not set)
return HostStatus::Global::OK
end
end

Also available in: Unified diff