Rename config entry to work with newest stein oslo utils package

Renaming a config entry as it causes a name conflict with
the latest version of oslo utils introduced during the stein rebase

Change-Id: Idc581b7dc389b00863461f2b30b7f6ae283ffdc5
Story: 2004765
Task: 28883
Signed-off-by: Tyler Smith <tyler.smith@windriver.com>
This commit is contained in:
Tyler Smith 2019-04-16 14:41:20 -04:00
parent 687ed8c747
commit 160ef92b44

View File

@ -142,7 +142,7 @@ log_opts = [
cfg.BoolOpt('publish_errors',
default=False,
help='publish error events'),
cfg.BoolOpt('fatal_deprecations',
cfg.BoolOpt('deprecations_fatal',
default=False,
help='make deprecations fatal'),
@ -247,7 +247,7 @@ class ContextAdapter(BaseLoggerAdapter):
def deprecated(self, msg, *args, **kwargs):
stdmsg = _("Deprecated: %s") % msg
if CONF.fatal_deprecations:
if CONF.deprecations_fatal:
self.critical(stdmsg, *args, **kwargs)
raise DeprecatedConfig(msg=stdmsg)
else: