summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2019-03-16 03:40:04 +0000
committerGerrit Code Review <review@openstack.org>2019-03-16 03:40:04 +0000
commita4fae269ab66c72fd868d075912bece300300d63 (patch)
treedb2e76d2965406c6b2bc641230479d69b87bd373
parent5a3be01535d3902e1ee21ca070d4918adefc2018 (diff)
parentd06801153d7879de74055cd789001e5109040192 (diff)
Merge "Return request-id to APIs that don't respond with a body" into stable/rocky
-rw-r--r--manila/api/openstack/wsgi.py2
-rw-r--r--releasenotes/notes/bug-1815532-supply-request-id-in-all-apis-74419bc1b1feea1e.yaml4
2 files changed, 5 insertions, 1 deletions
diff --git a/manila/api/openstack/wsgi.py b/manila/api/openstack/wsgi.py
index c2ac051..9a7ef6b 100644
--- a/manila/api/openstack/wsgi.py
+++ b/manila/api/openstack/wsgi.py
@@ -866,7 +866,7 @@ class Resource(wsgi.Application):
866 for hdr, val in response.headers.items(): 866 for hdr, val in response.headers.items():
867 val = utils.convert_str(val) 867 val = utils.convert_str(val)
868 response.headers[hdr] = val 868 response.headers[hdr] = val
869 869 _set_request_id_header(request, response.headers)
870 if not request.api_version_request.is_null(): 870 if not request.api_version_request.is_null():
871 response.headers[API_VERSION_REQUEST_HEADER] = ( 871 response.headers[API_VERSION_REQUEST_HEADER] = (
872 request.api_version_request.get_string()) 872 request.api_version_request.get_string())
diff --git a/releasenotes/notes/bug-1815532-supply-request-id-in-all-apis-74419bc1b1feea1e.yaml b/releasenotes/notes/bug-1815532-supply-request-id-in-all-apis-74419bc1b1feea1e.yaml
new file mode 100644
index 0000000..e705202
--- /dev/null
+++ b/releasenotes/notes/bug-1815532-supply-request-id-in-all-apis-74419bc1b1feea1e.yaml
@@ -0,0 +1,4 @@
1---
2fixes:
3 - APIs that were not returning a request ID ('x-compute-request-id') in the
4 response headers have been fixed.