ironic/releasenotes/notes/api-none-cdb95e58b69a5c50.yaml
Dmitry Tantsur b2ee05a0b1 Add check on get_endpoint returning None
Currently we expect keystoneauth to raise on missing endpoint, but in
many cases it returns None from get_endpoint instead. This causes two
kinds of problems:
* Raising Python exceptions in the code that is not ready to handle None
  (e.g. get_ironic_api_url in deploy_utils).
* Passing endpoint_override=None to client constructors, thus effectively
  ignoring provided adapter configuration options.
This change turns None into a proper error.

Change-Id: I8dad2e8ef5ff39167995dfe8266a48e80a29788b
2019-06-19 16:23:07 +02:00

9 lines
259 B
YAML

---
fixes:
- |
Fixes a confusing ``AttributeError`` if an adapter returns ``None`` for
the bare metal API.
- |
Prevents the adapter configuration options from getting ignored if
a matching endpoint cannot be found. An error is now raised.