diff options
author | gordon chung <gord@live.ca> | 2014-08-13 16:33:46 -0400 |
---|---|---|
committer | gordon chung <gord@live.ca> | 2014-08-13 17:04:36 -0400 |
commit | 717acd59647e068318b1f374ef803c7fa6498623 (patch) | |
tree | b025ed9506a492a577c436dc10d364c9789530ea /oslo | |
parent | 29054411b04b8e595856da4d4be5a62de91960b5 (diff) | |
download | oslo-middleware-717acd59647e068318b1f374ef803c7fa6498623.tar.gz |
drop middleware suffix in class names
as discussed in bp, we should drop the middleware suffix in class
names to avoid redundancy.
Change-Id: I60e1e84e817e24be9ad1d31381df95c93f7b7990
Diffstat (limited to 'oslo')
-rw-r--r-- | oslo/middleware/catch_errors.py | 2 | ||||
-rw-r--r-- | oslo/middleware/correlation_id.py | 2 | ||||
-rw-r--r-- | oslo/middleware/request_id.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/oslo/middleware/catch_errors.py b/oslo/middleware/catch_errors.py index a392dcc..73aeb9e 100644 --- a/oslo/middleware/catch_errors.py +++ b/oslo/middleware/catch_errors.py @@ -30,7 +30,7 @@ from oslo.middleware.i18n import _LE LOG = logging.getLogger(__name__) -class CatchErrorsMiddleware(base.Middleware): +class CatchErrors(base.Middleware): @webob.dec.wsgify def __call__(self, req): diff --git a/oslo/middleware/correlation_id.py b/oslo/middleware/correlation_id.py index 9e7ccfb..3923654 100644 --- a/oslo/middleware/correlation_id.py +++ b/oslo/middleware/correlation_id.py @@ -20,7 +20,7 @@ import uuid from oslo.middleware import base -class CorrelationIdMiddleware(base.Middleware): +class CorrelationId(base.Middleware): def process_request(self, req): correlation_id = (req.headers.get("X_CORRELATION_ID") or diff --git a/oslo/middleware/request_id.py b/oslo/middleware/request_id.py index 5ad177a..4d356b5 100644 --- a/oslo/middleware/request_id.py +++ b/oslo/middleware/request_id.py @@ -29,7 +29,7 @@ ENV_REQUEST_ID = 'openstack.request_id' HTTP_RESP_HEADER_REQUEST_ID = 'x-openstack-request-id' -class RequestIdMiddleware(base.Middleware): +class RequestId(base.Middleware): @webob.dec.wsgify def __call__(self, req): |