Actions
Bug #9118
closedFailed to send email notification puppet_error_state: undefined method `recipients_for' for nil:NilClass
Description
We've configured foreman to send emails on failed puppet runs. The configuration is this:
- Outgoing email settings
production:
delivery_method: :smtp
smtp_settings:
address: smtp.domain.net
port: 25
domain: domain.net
authentication: :none
tls: false
enable_starttls_auto: false
In foreman logs we noticed this error:
Failed to send email notification puppet_error_state: undefined method `recipients_for' for nil:NilClass
Updated by Dominic Cleal almost 10 years ago
- Related to Tracker #7585: Mail notifications tracker added
Updated by Dominic Cleal almost 10 years ago
- Category set to E-Mail
It appears that app/mailers/host_mailer.rb doesn't handle host.owner being nil and calls recipients_for on it anyway, it assumes the host has an owner.
Updated by The Foreman Bot almost 10 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2127 added
- Pull request deleted (
)
Updated by Tom Caspy almost 10 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 699433930fe80c905b757ae951a5aaa1952f0e9f.
Updated by Dominic Cleal almost 10 years ago
- Translation missing: en.field_release set to 32
Actions