diff options
| author | Sean Dague <sean@dague.net> | 2017-06-13 12:17:45 -0400 |
|---|---|---|
| committer | Sean Dague <sean@dague.net> | 2017-06-26 11:12:18 +0000 |
| commit | 24f508fba75cdf1165a2d7323968c1ff74e117e3 (patch) | |
| tree | 7449867adc2a56f56de19515c5b4e19ebdabe4bb | |
| parent | 106bc00917a3ca975b3aa542ad52268d78b0565a (diff) | |
| download | python-neutronclient-24f508fba75cdf1165a2d7323968c1ff74e117e3.tar.gz | |
remove explicit global_request_id handling from session client
The neutron client that inherits from keystonauth1 can now use the
built in 2.21.0 global_request_id handling. This just cleans up some
code in the process.
Change-Id: I6df5c98ebf447d3e3783ef23b4ef4d8e8af94c9b
| -rw-r--r-- | neutronclient/client.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/neutronclient/client.py b/neutronclient/client.py index 7c8000d..395f7db 100644 --- a/neutronclient/client.py +++ b/neutronclient/client.py @@ -304,9 +304,6 @@ class HTTPClient(object): class SessionClient(adapter.Adapter): - def __init__(self, *args, **kwargs): - self.global_request_id = kwargs.pop("global_request_id", None) - super(SessionClient, self).__init__(*args, **kwargs) def request(self, *args, **kwargs): kwargs.setdefault('authenticated', False) @@ -317,8 +314,6 @@ class SessionClient(adapter.Adapter): headers = kwargs.setdefault('headers', {}) headers.setdefault('Accept', content_type) - if self.global_request_id: - headers.setdefault(REQ_ID_HEADER, self.global_request_id) # NOTE(dbelova): osprofiler_web.get_trace_id_headers does not add any # headers in case if osprofiler is not initialized. if osprofiler_web: |
