bugfix(cli): Remove redundant oslo_log register_options calls
This removes extra calls to oslo_log.register_options that were causing a `oslo_config.cfg.ArgsAlreadyParsedError` when using the CLI. Change-Id: Ib253ac0dd72f7a2a5558e6ee68736fb5c35ae1e0
This commit is contained in:
parent
1ac92cc7f6
commit
4fcd5468a0
|
@ -31,7 +31,6 @@ class CliAction(object):
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.logger = LOG
|
self.logger = LOG
|
||||||
logging.register_options(CONF)
|
|
||||||
logging.set_defaults(default_log_levels=CONF.default_log_levels)
|
logging.set_defaults(default_log_levels=CONF.default_log_levels)
|
||||||
logging.setup(CONF, 'armada')
|
logging.setup(CONF, 'armada')
|
||||||
|
|
||||||
|
|
|
@ -84,8 +84,6 @@ def main(ctx, debug, api, url, token):
|
||||||
token=token)
|
token=token)
|
||||||
)
|
)
|
||||||
|
|
||||||
log.register_options(CONF)
|
|
||||||
|
|
||||||
if debug:
|
if debug:
|
||||||
CONF.debug = debug
|
CONF.debug = debug
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue