From 959cc674521d99434bb4bf126cb367902aff15d3 Mon Sep 17 00:00:00 2001 From: Xiaohua Zhang Date: Tue, 27 Nov 2018 10:10:28 +0000 Subject: Fix pep8 error in windriver plugin Change-Id: Ifff45168c2647b20cacaf4b3ee0413f9a8a824a7 Issue-ID: MULTICLOUD-420 Signed-off-by: Xiaohua Zhang --- windriver/titanium_cloud/middleware.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'windriver/titanium_cloud/middleware.py') diff --git a/windriver/titanium_cloud/middleware.py b/windriver/titanium_cloud/middleware.py index f2618e06..4f19da08 100644 --- a/windriver/titanium_cloud/middleware.py +++ b/windriver/titanium_cloud/middleware.py @@ -19,6 +19,7 @@ from onaplogging.mdcContext import MDC FORWARDED_FOR_FIELDS = ["HTTP_X_FORWARDED_FOR", "HTTP_X_FORWARDED_HOST", "HTTP_X_FORWARDED_SERVER"] + class LogContextMiddleware(object): # the last IP behind multiple proxies, if no exist proxies @@ -43,7 +44,6 @@ class LogContextMiddleware(object): return ip - def process_request(self, request): # fetch propageted Id from other component. if do not fetch id, # generate one. @@ -62,4 +62,3 @@ class LogContextMiddleware(object): MDC.clear() return response - -- cgit 1.2.3-korg