diff options
author | Dmitry Tantsur <divius.inside@gmail.com> | 2019-05-16 16:52:36 +0200 |
---|---|---|
committer | Dmitry Tantsur <divius.inside@gmail.com> | 2019-05-16 17:01:48 +0200 |
commit | 4565af8ccd8aaa35868fae6ae31216c3e57014f3 (patch) | |
tree | 97cef316b78197d72987de7c66de64254dcf0305 /releasenotes | |
parent | 5e8680c11e7c1fac53c354ff94411da578e58f4f (diff) | |
download | python-ironicclient-4565af8ccd8aaa35868fae6ae31216c3e57014f3.tar.gz |
Do not try to use /v1/v1 when endpoint_override is used
In one of the places where endpoint_override is used we did not strip
the /v1 suffix, resulting in doube /v1/v1 sometimes.
This patch also corrects the way we strip this suffix (str.rstrip accepts
a set of symbols, not a substring; use regex instead).
It remains unclear why the breakage passed the gate initially. I assume
it was not on the active code path until some Nova change.
Story: #2005723
Task: #31051
Change-Id: I3b25f4fb170aa93159ffa8074dc74fa6f50671b7
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/endpoint-strip-dea59ccb05628a35.yaml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/releasenotes/notes/endpoint-strip-dea59ccb05628a35.yaml b/releasenotes/notes/endpoint-strip-dea59ccb05628a35.yaml new file mode 100644 index 0000000..6400da8 --- /dev/null +++ b/releasenotes/notes/endpoint-strip-dea59ccb05628a35.yaml @@ -0,0 +1,5 @@ +--- +fixes: + - | + Prevent trying to access endpoints with ``/v1/v1`` when using endpoint + overrides containing ``/v1``. |