Project

General

Profile

« Previous | Next » 

Revision d80e2430

Added by Daniel Lobato Garcia about 7 years ago

Fixes #16159 - Rename mail alerts to not be Puppet specific

Right now, under 'my account', users get emails with alerts about the
status of their hosts regarding configuration management (e.g: if there
was an error, get an alert, or get a weekly summary of all hosts
changes)

These emails gather info from reports that could come from Puppet,
Ansible, Salt or Chef, but there are references to Puppet all over
them.

I think these Puppet references should be removed as these reports
may not come from Puppet.

View differences:

app/services/report_importer.rb
return
end
owners = host.owner.present? ? host.owner.recipients_for(:puppet_error_state) : []
users = PuppetError.all_hosts.flat_map(&:users)
owners = host.owner.present? ? host.owner.recipients_for(:config_error_state) : []
users = ConfigManagementError.all_hosts.flat_map(&:users)
users.select { |user| Host.authorized_as(user, :view_hosts).find(host.id).present? }
owners.concat users
if owners.present?

Also available in: Unified diff