diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2019-09-23 14:26:37 +0200 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2019-09-23 15:31:09 +0200 |
commit | 7f003e1e045e3e20b824a94676310315f8fef9fc (patch) | |
tree | 401e3e093070dbe0c9662e914124d18ff96f569b /releasenotes/notes | |
parent | 5a9964b17601bda378fa71296737e97451300fb7 (diff) | |
download | python-ironicclient-7f003e1e045e3e20b824a94676310315f8fef9fc.tar.gz |
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
Diffstat (limited to 'releasenotes/notes')
-rw-r--r-- | releasenotes/notes/typerror-132801fe4541fdb4.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/releasenotes/notes/typerror-132801fe4541fdb4.yaml b/releasenotes/notes/typerror-132801fe4541fdb4.yaml new file mode 100644 index 0000000..3538824 --- /dev/null +++ b/releasenotes/notes/typerror-132801fe4541fdb4.yaml @@ -0,0 +1,7 @@ +--- +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``. |