From 160ef92b44c4b0874b95d2e6e5d660161590b483 Mon Sep 17 00:00:00 2001 From: Tyler Smith Date: Tue, 16 Apr 2019 14:41:20 -0400 Subject: [PATCH] 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 --- service-mgmt-api/sm-api/sm_api/openstack/common/log.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/service-mgmt-api/sm-api/sm_api/openstack/common/log.py b/service-mgmt-api/sm-api/sm_api/openstack/common/log.py index 6d0a6932..1b6c2d5c 100644 --- a/service-mgmt-api/sm-api/sm_api/openstack/common/log.py +++ b/service-mgmt-api/sm-api/sm_api/openstack/common/log.py @@ -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: