Revision 8dcdcce6
Added by Joseph Magen about 11 years ago
- ID 8dcdcce6f9fdb5dce4356189438427ce62a0ec23
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?
|
Also available in: Unified diff
fixes #2323 syntax error in host_mailer