Fix OSprofiler support
During the new OSprofiler initialization method introduction there was an issue introduced - OSprofiler expects context to be a dict, not Context object. This patch fixes it. Change-Id: I8b42aa47276c6e7ef362cf9ed4501ee732b5cc4b Closes-Bug: #1644437
This commit is contained in:
parent
b9d0a5b885
commit
6aa9a3cd63
@ -36,7 +36,7 @@ def setup(name, host='0.0.0.0'): # nosec
|
|||||||
if CONF.profiler.enabled:
|
if CONF.profiler.enabled:
|
||||||
osprofiler.initializer.init_from_conf(
|
osprofiler.initializer.init_from_conf(
|
||||||
conf=CONF,
|
conf=CONF,
|
||||||
context=context.get_admin_context(),
|
context=context.get_admin_context().to_dict(),
|
||||||
project="neutron",
|
project="neutron",
|
||||||
service=name,
|
service=name,
|
||||||
host=host
|
host=host
|
||||||
|
Loading…
Reference in New Issue
Block a user