diff options
author | Dmitry Tantsur <dtantsur@protonmail.com> | 2020-02-10 11:02:09 +0100 |
---|---|---|
committer | Dmitry Tantsur <dtantsur@protonmail.com> | 2020-02-10 11:07:04 +0100 |
commit | e8914a7ef9eb582441a7067f2663e19209f32822 (patch) | |
tree | 7ab199893b4eeeb26f2790370040f21ccee67783 /releasenotes | |
parent | d0458b07f12e7980437eb87dea522f9bddc68256 (diff) | |
download | python-ironicclient-e8914a7ef9eb582441a7067f2663e19209f32822.tar.gz |
Provide a clear error message when using client.Client without a session4.0.0
Currently we fail with _construct_http_client() takes at least 1 argument.
This change provides a proper TypeError and updates documentation to make
it clear where a session is required. Also provided are explicit unit
tests on passing a session via various means.
Change-Id: I96073dc80d225a9b88fdc12bb058c0145aca623b
Diffstat (limited to 'releasenotes')
-rw-r--r-- | releasenotes/notes/client-session-09e6ced1fbc6a9b0.yaml | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/releasenotes/notes/client-session-09e6ced1fbc6a9b0.yaml b/releasenotes/notes/client-session-09e6ced1fbc6a9b0.yaml new file mode 100644 index 0000000..376d4fc --- /dev/null +++ b/releasenotes/notes/client-session-09e6ced1fbc6a9b0.yaml @@ -0,0 +1,7 @@ +--- +fixes: + - | + Fails with a clear TypeError when a session is not provided to + ``client.Client`` or ``v1.client.Client``. Before we used to throw:: + + _construct_http_client() takes at least 1 argument |