From f3e4fc01a2d541bc4a6db111013eb6a009f28f19 Mon Sep 17 00:00:00 2001 From: Chen Date: Mon, 15 Oct 2018 20:05:56 +0800 Subject: [PATCH] Set default notifier endpoint The notifier endpoint needs to be set otherwise the default default_email notifier driver will complain about the empty smtp server url [1]. [1] https://github.com/openstack/freezer-dr/blob/master/freezer_dr/notifiers/drivers/default/default_email.py#L37-L38 Change-Id: I9ac4669ecc50ce93adf28084ab6280b66c4dc2f0 --- etc/freezer-dr.conf.sample | 2 +- freezer_dr/common/config.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/etc/freezer-dr.conf.sample b/etc/freezer-dr.conf.sample index de1b693..a638f47 100644 --- a/etc/freezer-dr.conf.sample +++ b/etc/freezer-dr.conf.sample @@ -241,7 +241,7 @@ # Endpoint URL for the notification system. If you the driver you are using # doesnot require any URL just comment it or use none (string value) -#endpoint = +#endpoint = localhost # Username to authenticate against the notification system. If the driver you # are using doesnot require any authentications comment or use None (string diff --git a/freezer_dr/common/config.py b/freezer_dr/common/config.py index e3e9f5e..c0a89c4 100644 --- a/freezer_dr/common/config.py +++ b/freezer_dr/common/config.py @@ -151,7 +151,7 @@ _NOTIFIERS = [ 'StandardEmail and freezer_dr.notifiers.drivers.default.' 'slack.slack.SlackNotifier'), cfg.StrOpt('endpoint', - default=None, + default='localhost', dest='endpoint', help='Endpoint URL for the notification system. If you the ' 'driver you are using doesnot require any URL just comment'