Fix config parsing in zaqar-server
I56779da783261c6eba07a7d9286d1615dcff3598 moved options around, but tried to register CLI after configuration parsing, which doesn't work. Move parsing at the end again. Change-Id: I1f62e156c7d6a3ff2340587c26d45132fc7782c3
This commit is contained in:
parent
cb01e40555
commit
7c6eecdb4f
@ -35,7 +35,6 @@ def run():
|
||||
# to pick up common options from openstack.common.log, since
|
||||
# that module uses the global CONF instance exclusively.
|
||||
conf = cfg.CONF
|
||||
conf(project='zaqar', prog='zaqar-server')
|
||||
# NOTE(eggmaster): register command line options for zaqar-server
|
||||
conf.register_cli_opts(_CLI_OPTIONS)
|
||||
log.register_options(conf)
|
||||
@ -47,6 +46,7 @@ def run():
|
||||
'%(asctime)s.%(msecs)03d %(process)d %(levelname)s'
|
||||
' %(name)s [%(request_id)s %(user_identity)s]'
|
||||
' [project_id:%(project_id)s] %(message)s')
|
||||
conf(project='zaqar', prog='zaqar-server')
|
||||
|
||||
server = bootstrap.Bootstrap(conf)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user