1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-06 08:52:10 +00:00

fix: update client cached session injected

This commit is contained in:
jo 2025-09-08 12:31:39 +02:00
parent 7b6c8ee1ee
commit 7bbab2afb2
No known key found for this signature in database
GPG key ID: B2FEC9B22722B984

View file

@ -101,8 +101,8 @@ class Client(ClientBase):
Cached response will not expire, therefore the cached client must not be used
for long living scopes.
"""
self._requests_session = CachedSession()
self._client._session = CachedSession()
try:
yield
finally:
self._requests_session = requests.Session()
self._client._session = requests.Session()