Implemented exception config module
Implemented exception config module Partially Implements: blueprint centralise-config-opts Change-Id: Ic1b94e28a960a7306f15afbf69382edc15b5999e
This commit is contained in:
committed by
David TARDIVEL
parent
5c79074e9c
commit
9e4bf718da
@@ -26,22 +26,16 @@ import functools
|
||||
import sys
|
||||
|
||||
from keystoneclient import exceptions as keystone_exceptions
|
||||
from oslo_config import cfg
|
||||
from oslo_log import log as logging
|
||||
import six
|
||||
|
||||
from watcher._i18n import _, _LE
|
||||
|
||||
from watcher import conf
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
EXC_LOG_OPTS = [
|
||||
cfg.BoolOpt('fatal_exception_format_errors',
|
||||
default=False,
|
||||
help='Make exception message format errors fatal.'),
|
||||
]
|
||||
|
||||
CONF = cfg.CONF
|
||||
CONF.register_opts(EXC_LOG_OPTS)
|
||||
CONF = conf.CONF
|
||||
|
||||
|
||||
def wrap_keystone_exception(func):
|
||||
|
||||
Reference in New Issue
Block a user