The option setting loop in config_notify raises an exception if
smtp_host option is not configured.
Signed-off-by: Kiefer Chang <kiefer.chang@suse.com>
(cherry picked from commit
b6b6f046b8af1589816b7bff33b2642ab331824e)
# smtp
{
'name': 'smtp_host',
+ 'default': '',
'desc': 'SMTP server',
'runtime': True,
},
if r:
for code, alert in r.items():
checks[code] = alert
+ else:
+ self.log.warn('Alert is not sent because smtp_host is not configured')
self.set_health_checks(checks)
def serve(self):