diff --git a/plugins/modules/hcloud_iso_info.py b/plugins/modules/hcloud_iso_info.py index 55152bcc..63faccba 100644 --- a/plugins/modules/hcloud_iso_info.py +++ b/plugins/modules/hcloud_iso_info.py @@ -148,7 +148,9 @@ def _prepare_result(self): "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(),