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:
parent
7b6c8ee1ee
commit
7bbab2afb2
1 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue