python-ironicclient/releasenotes/notes/endpoint-strip-dea59ccb05628a35.yaml
Dmitry Tantsur 4565af8ccd 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
2019-05-16 17:01:48 +02:00

6 lines
126 B
YAML

---
fixes:
- |
Prevent trying to access endpoints with ``/v1/v1`` when using endpoint
overrides containing ``/v1``.