From 3e29913bb992ea01c70192cea9ca3a0f2663f9e5 Mon Sep 17 00:00:00 2001
From: Jamie Lennox <jamielennox@gmail.com>
Date: Thu, 25 Aug 2016 18:39:52 +1000
Subject: [PATCH] Use egg form of osprofiler in paste pipeline

Use the egg form of the osprofiler filter middleware in the paste
pipeline. This gives osprofiler greater control over exactly where this
middleware is pointing.

It also moves the filter section up to where all the other filters are.

Change-Id: I330956c49167606ce8a8137139ee92bd603adceb
---
 etc/keystone-paste.ini | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/etc/keystone-paste.ini b/etc/keystone-paste.ini
index acb17fc154..59fe2a5d85 100644
--- a/etc/keystone-paste.ini
+++ b/etc/keystone-paste.ini
@@ -42,6 +42,9 @@ use = egg:keystone#url_normalize
 [filter:sizelimit]
 use = egg:oslo.middleware#sizelimit
 
+[filter:osprofiler]
+use = egg:osprofiler#osprofiler
+
 [app:public_service]
 use = egg:keystone#public_service
 
@@ -89,6 +92,3 @@ use = egg:Paste#urlmap
 /v2.0 = admin_api
 /v3 = api_v3
 / = admin_version_api
-
-[filter:osprofiler]
-paste.filter_factory = osprofiler.web:WsgiMiddleware.factory