From 27f9a730d5cce393933201dbb3dd650304619fd6 Mon Sep 17 00:00:00 2001 From: jo Date: Wed, 17 Dec 2025 14:59:43 +0100 Subject: [PATCH] fix: sanity tests --- plugins/modules/network_info.py | 4 ++-- plugins/modules/primary_ip.py | 10 +++++++--- plugins/modules/primary_ip_info.py | 4 ++-- plugins/modules/server.py | 10 +++++++--- plugins/modules/server_info.py | 4 ++-- 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/plugins/modules/network_info.py b/plugins/modules/network_info.py index 0c7209a..2f0289e 100644 --- a/plugins/modules/network_info.py +++ b/plugins/modules/network_info.py @@ -158,8 +158,8 @@ hcloud_network_info: description: | Name of the datacenter of the server - B(Deprecated:) The R(hcloud_network_info.servers.datacenter) value is deprecated and will be removed - after 1 July 2026. Please use the R(hcloud_network_info.servers.location) value instead. + B(Deprecated:) The RV(hcloud_network_info[].servers[].datacenter) value is deprecated and will be removed + after 1 July 2026. Please use the RV(hcloud_network_info[].servers[].location) value instead. See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters. returned: always type: str diff --git a/plugins/modules/primary_ip.py b/plugins/modules/primary_ip.py index cff0679..70d64f8 100644 --- a/plugins/modules/primary_ip.py +++ b/plugins/modules/primary_ip.py @@ -151,8 +151,8 @@ hcloud_primary_ip: description: | Name of the datacenter of the Primary IP - B(Deprecated:) The R(hcloud_primary_ip.datacenter) value is deprecated and will be removed - after 1 July 2026. Please use the R(hcloud_primary_ip.location) value instead. + B(Deprecated:) The RV(hcloud_primary_ip.datacenter) value is deprecated and will be removed + after 1 July 2026. Please use the RV(hcloud_primary_ip.location) value instead. See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters. type: str returned: Always @@ -313,7 +313,11 @@ class AnsiblePrimaryIP(AnsibleHCloud): id={"type": "int"}, name={"type": "str"}, location={"type": "str"}, - datacenter={"type": "str", "removed_at_date": "2026-07-01"}, + datacenter={ + "type": "str", + "removed_at_date": "2026-07-01", + "removed_from_collection": "hetzner.hcloud", + }, server={"type": "str"}, auto_delete={"type": "bool", "default": False}, type={"choices": ["ipv4", "ipv6"]}, diff --git a/plugins/modules/primary_ip_info.py b/plugins/modules/primary_ip_info.py index b1fab3e..b2ecb8f 100644 --- a/plugins/modules/primary_ip_info.py +++ b/plugins/modules/primary_ip_info.py @@ -108,8 +108,8 @@ hcloud_primary_ip_info: description: | Datacenter where the Primary IP was created in. - B(Deprecated:) The R(hcloud_primary_ip_info.home_location) value is deprecated and will be removed - after 1 July 2026. Please use the R(hcloud_primary_ip_info.location) value instead. + B(Deprecated:) The RV(hcloud_primary_ip_info[].home_location) value is deprecated and will be removed + after 1 July 2026. Please use the RV(hcloud_primary_ip_info[].location) value instead. See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters. returned: always type: str diff --git a/plugins/modules/server.py b/plugins/modules/server.py index a2a5233..124dc0f 100644 --- a/plugins/modules/server.py +++ b/plugins/modules/server.py @@ -309,8 +309,8 @@ hcloud_server: description: | Name of the datacenter of the server. - B(Deprecated:) The R(hcloud_server.datacenter) value is deprecated and will be removed - after 1 July 2026. Please use the R(hcloud_server.location) value instead. + B(Deprecated:) The RV(hcloud_server.datacenter) value is deprecated and will be removed + after 1 July 2026. Please use the RV(hcloud_server.location) value instead. See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters. returned: always type: str @@ -949,7 +949,11 @@ class AnsibleHCloudServer(AnsibleHCloud): image_allow_deprecated={"type": "bool", "default": False, "aliases": ["allow_deprecated_image"]}, server_type={"type": "str"}, location={"type": "str"}, - datacenter={"type": "str", "removed_at_date": "2026-07-01"}, + datacenter={ + "type": "str", + "removed_at_date": "2026-07-01", + "removed_from_collection": "hetzner.hcloud", + }, user_data={"type": "str"}, ssh_keys={"type": "list", "elements": "str", "no_log": False}, volumes={"type": "list", "elements": "str"}, diff --git a/plugins/modules/server_info.py b/plugins/modules/server_info.py index 4208705..8e97d6e 100644 --- a/plugins/modules/server_info.py +++ b/plugins/modules/server_info.py @@ -116,8 +116,8 @@ hcloud_server_info: description: | Name of the datacenter of the server. - B(Deprecated:) The R(hcloud_server_info.datacenter) value is deprecated and will be removed - after 1 July 2026. Please use the R(hcloud_server_info.location) value instead. + B(Deprecated:) The RV(hcloud_server_info[].datacenter) value is deprecated and will be removed + after 1 July 2026. Please use the RV(hcloud_server_info[].location) value instead. See https://docs.hetzner.cloud/changelog#2025-12-16-phasing-out-datacenters. returned: always type: str