mirror of
https://github.com/ansible-collections/community.crypto.git
synced 2026-05-08 14:22:56 +00:00
Improve type hinting. (#914)
This commit is contained in:
@@ -258,7 +258,14 @@ class Authorization:
|
||||
return self.data.copy()
|
||||
|
||||
def refresh(self, *, client: ACMEClient) -> bool:
|
||||
result, dummy = client.get_request(self.url)
|
||||
result, info = client.get_request(self.url)
|
||||
if not isinstance(result, dict):
|
||||
raise ACMEProtocolException(
|
||||
module=client.module,
|
||||
msg="Unexpected authorization data",
|
||||
info=info,
|
||||
content_json=result,
|
||||
)
|
||||
changed = self.data != result
|
||||
self._setup(client=client, data=result)
|
||||
return changed
|
||||
|
||||
Reference in New Issue
Block a user