Pass project name to oslo.config
We don't need to pass args, they will be taken automatically, but we should pass the CLI name, so, it'll do some implicit magic, for example, it'll read by default config file from /etc/ccp/ccp.conf Change-Id: I7cf4468eb90cb007f98a1c4008a5a57e519d6530
This commit is contained in:
parent
ef3c83e9a6
commit
78c38f4c5f
|
@ -54,7 +54,7 @@ def main():
|
|||
signal.signal(signal.SIGTERM, signal_handler)
|
||||
signal.signal(signal.SIGINT, signal_handler)
|
||||
logging.register_options(CONF)
|
||||
CONF(sys.argv[1:])
|
||||
CONF(project='ccp')
|
||||
logging.setup(CONF, 'fuel-ccp')
|
||||
|
||||
func = globals()['do_%s' % CONF.action.name.replace('-', '_')]
|
||||
|
|
Loading…
Reference in New Issue