Merge "Fix genconfig error"
This commit is contained in:
commit
031ca7d764
@ -56,7 +56,7 @@ class WsgiMiddleware(object):
|
|||||||
|
|
||||||
|
|
||||||
def setup(binary, host):
|
def setup(binary, host):
|
||||||
if CONF.profiler.enabled:
|
if profiler_initializer and CONF.profiler.enabled:
|
||||||
profiler_initializer.init_from_conf(
|
profiler_initializer.init_from_conf(
|
||||||
conf=CONF,
|
conf=CONF,
|
||||||
context=context.get_admin_context().to_dict(),
|
context=context.get_admin_context().to_dict(),
|
||||||
|
@ -22,6 +22,8 @@ def register_opts(conf):
|
|||||||
|
|
||||||
|
|
||||||
def list_opts():
|
def list_opts():
|
||||||
|
if not profiler_opts:
|
||||||
|
return {}
|
||||||
return {
|
return {
|
||||||
profiler_opts._profiler_opt_group: profiler_opts._PROFILER_OPTS
|
profiler_opts._profiler_opt_group: profiler_opts._PROFILER_OPTS
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user