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:
Dina Belova 2016-11-23 14:07:29 -08:00
parent b9d0a5b885
commit 6aa9a3cd63
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def setup(name, host='0.0.0.0'): # nosec
if CONF.profiler.enabled:
osprofiler.initializer.init_from_conf(
conf=CONF,
context=context.get_admin_context(),
context=context.get_admin_context().to_dict(),
project="neutron",
service=name,
host=host