diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d454f24..55ccd5b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -39,7 +39,7 @@ repos: - id: isort - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.12.1 + rev: 24.1.0 hooks: - id: black diff --git a/plugins/modules/iso_info.py b/plugins/modules/iso_info.py index c641d69..e623d17 100644 --- a/plugins/modules/iso_info.py +++ b/plugins/modules/iso_info.py @@ -151,12 +151,14 @@ class AnsibleHCloudIsoInfo(AnsibleHCloud): "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(), - } - if iso_info.deprecation is not None - else None, + "deprecation": ( + { + "announced": iso_info.deprecation.announced.isoformat(), + "unavailable_after": iso_info.deprecation.unavailable_after.isoformat(), + } + if iso_info.deprecation is not None + else None + ), } ) diff --git a/plugins/modules/server_type_info.py b/plugins/modules/server_type_info.py index abee399..61f1f50 100644 --- a/plugins/modules/server_type_info.py +++ b/plugins/modules/server_type_info.py @@ -153,12 +153,14 @@ class AnsibleHCloudServerTypeInfo(AnsibleHCloud): "cpu_type": to_native(server_type.cpu_type), "architecture": to_native(server_type.architecture), "included_traffic": server_type.included_traffic, - "deprecation": { - "announced": server_type.deprecation.announced.isoformat(), - "unavailable_after": server_type.deprecation.unavailable_after.isoformat(), - } - if server_type.deprecation is not None - else None, + "deprecation": ( + { + "announced": server_type.deprecation.announced.isoformat(), + "unavailable_after": server_type.deprecation.unavailable_after.isoformat(), + } + if server_type.deprecation is not None + else None + ), } ) return tmp