python-ironicclient/releasenotes/notes/client-session-09e6ced1fbc6a9b0.yaml
Dmitry Tantsur e8914a7ef9 Provide a clear error message when using client.Client without a session
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
2020-02-10 11:07:04 +01:00

8 lines
215 B
YAML

---
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