python-ironicclient/releasenotes/notes/typerror-132801fe4541fdb4.yaml
Dmitry Tantsur 7f003e1e04 Fix TypeError when using endpoint_override with SessionClient
First, when endpoint cannot be detected from a session None is returned
from get_endpoint, causing subsequent code to fail. This changes fixes it.

Second, endpoint_override is not passed to a Session (it's an Adapter)
property, doing it has no effect. Use get_endpoint from Adapter instead.

Change-Id: Ia942858abe980abf95c1ca136767983e7a0a285e
Story: #2006600
Task: #36763
2019-09-23 15:31:09 +02:00

8 lines
236 B
YAML

---
fixes:
- |
Fixes ``TypeError`` when the bare metal endpoint cannot be detected from
a session. A proper ``EndpointNotFound`` exception is raised now.
- |
Fixes using ``endpoint_override`` with the ``SessionClient``.