python-ironicclient/releasenotes/notes/index-error-no-endpoint-eb281187f80a9aa4.yaml
Anton Arefiev eb97ff32c4 Fail with more meaningful error while creating client
Parameter 'endpoint' in v1 client object is mandatory if
os_ironic_api_version isn't specified. It's used to fetch version
from cache[1] and as endpoint override in session client[2]. But
since it passed via *args, it could be missing, and creation fails
with IndexError.

[1] https://github.com/openstack/python-ironicclient/blob/master/ironicclient/v1/client.py#L42
[2] https://github.com/openstack/python-ironicclient/blob/master/ironicclient/common/http.py#L595

Change-Id: I0310f748a1254dd7e54d93f913cff53aadaff16b
2016-08-15 14:57:16 +03:00

6 lines
170 B
YAML

---
fixes:
- Fail with EndpointException instead of IndexError while creating
v1 client without ``endpoint`` argument if os_ironic_api_version
isn't specified.