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: