Revision f892b463
Added by Stephen Benjamin about 10 years ago
app/mailers/host_mailer.rb | ||
---|---|---|
class HostMailer < ActionMailer::Base
|
||
helper :reports
|
||
|
||
default :content_type => "text/html", :from => Setting[:email_reply_address] || "noreply@foreman.exmaple.org"
|
||
default :content_type => "text/html", :from => Setting[:email_reply_address] || "noreply@foreman.example.org"
|
||
# sends out a summary email of hosts and their metrics (e.g. how many changes failures etc).
|
||
|
||
|
||
... | ... | |
|
||
if options[:env]
|
||
hosts = envhosts = options[:env].hosts
|
||
raise (_("unable to find any hosts for puppet environment=%s") % env) if envhosts.size == 0
|
||
raise (_("unable to find any hosts for puppet environment=%s") % options[:env]) if envhosts.size == 0
|
||
filter << "Environment=#{options[:env].name}"
|
||
end
|
||
name,value = options[:factname],options[:factvalue]
|
Also available in: Unified diff
fixes #4669 - HostMailer summary method refers to undefined variable
(cherry picked from commit 7966448c3cf6ae6194e6800e570668d3c65d2c25)