Project

General

Profile

Bug #2300 ยป host_mailer.rb.patch

Patch for host_mailer.rb to make reports:summarize work again - Andreas Ntaflos, 03/11/2013 11:25 AM

View differences:

app/models/host_mailer.rb
# print out an error if we couldn't find any hosts that match our request
raise "unable to find any hosts that match your request" if options[:env] or options[:factname]
# we didnt define a filter, use all hosts instead
hosts = "Host::Managed"
hosts = Host::Managed
end
email = options[:email] || Setting[:administrator]
raise "unable to find recipients" if email.empty?
    (1-1/1)