diff options
author | Xiaohua Zhang <xiaohua.zhang@windriver.com> | 2018-11-27 10:10:28 +0000 |
---|---|---|
committer | Xiaohua Zhang <xiaohua.zhang@windriver.com> | 2018-11-27 10:10:28 +0000 |
commit | 959cc674521d99434bb4bf126cb367902aff15d3 (patch) | |
tree | 7094e1281da0fc06332756ec4e0741f988cbbfe8 /windriver/titanium_cloud/middleware.py | |
parent | c98b8d6876c886f030dbb8d31bebd10dd05d30ef (diff) |
Fix pep8 error in windriver plugin
Change-Id: Ifff45168c2647b20cacaf4b3ee0413f9a8a824a7
Issue-ID: MULTICLOUD-420
Signed-off-by: Xiaohua Zhang <xiaohua.zhang@windriver.com>
Diffstat (limited to 'windriver/titanium_cloud/middleware.py')
-rw-r--r-- | windriver/titanium_cloud/middleware.py | 3 |
1 files changed, 1 insertions, 2 deletions
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 - |