mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
refactor: don't use ISO deprecated field (#371)
##### SUMMARY The deprecated field is deprecated, we must use the deprecation object instead. ##### COMPONENT NAME hcloud_iso_info
This commit is contained in:
parent
f35f5009aa
commit
41ea82cc07
1 changed files with 3 additions and 1 deletions
|
@ -148,7 +148,9 @@ class AnsibleHCloudIsoInfo(AnsibleHCloud):
|
|||
"description": to_native(iso_info.description),
|
||||
"type": iso_info.type,
|
||||
"architecture": iso_info.architecture,
|
||||
"deprecated": iso_info.deprecated,
|
||||
"deprecated": (
|
||||
iso_info.deprecation.unavailable_after if iso_info.deprecation is not None else None
|
||||
),
|
||||
"deprecation": {
|
||||
"announced": iso_info.deprecation.announced.isoformat(),
|
||||
"unavailable_after": iso_info.deprecation.unavailable_after.isoformat(),
|
||||
|
|
Loading…
Reference in a new issue