From e893006906343e881ed13f2d9a28c2ec768ab3ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20K=C3=A4mmerling?= Date: Fri, 12 Jun 2020 10:27:00 +0200 Subject: [PATCH] Fix sanity issues (#6) --- plugins/modules/hcloud_datacenter_info.py | 2 +- plugins/modules/hcloud_floating_ip.py | 2 +- plugins/modules/hcloud_floating_ip_info.py | 6 +++--- plugins/modules/hcloud_image_info.py | 2 +- plugins/modules/hcloud_location_info.py | 2 +- plugins/modules/hcloud_network.py | 2 +- plugins/modules/hcloud_network_info.py | 2 +- plugins/modules/hcloud_server.py | 4 ++-- plugins/modules/hcloud_server_info.py | 6 +++--- plugins/modules/hcloud_server_type_info.py | 2 +- plugins/modules/hcloud_ssh_key_info.py | 2 +- plugins/modules/hcloud_volume.py | 4 ++-- plugins/modules/hcloud_volume_info.py | 6 +++--- 13 files changed, 21 insertions(+), 21 deletions(-) diff --git a/plugins/modules/hcloud_datacenter_info.py b/plugins/modules/hcloud_datacenter_info.py index e804f52..9625274 100644 --- a/plugins/modules/hcloud_datacenter_info.py +++ b/plugins/modules/hcloud_datacenter_info.py @@ -150,7 +150,7 @@ def main(): is_old_facts = module._name == 'hcloud_datacenter_facts' if is_old_facts: module.deprecate("The 'hcloud_datacenter_facts' module has been renamed to 'hcloud_datacenter_info', " - "and the renamed one no longer returns ansible_facts", version='2.13') + "and the renamed one no longer returns ansible_facts", version='2.0.0', collection_name="hetzner.hcloud") hcloud = AnsibleHcloudDatacenterInfo(module) hcloud.get_datacenters() diff --git a/plugins/modules/hcloud_floating_ip.py b/plugins/modules/hcloud_floating_ip.py index 72edcbb..9ecb89c 100644 --- a/plugins/modules/hcloud_floating_ip.py +++ b/plugins/modules/hcloud_floating_ip.py @@ -161,7 +161,7 @@ hcloud_floating_ip: type: bool returned: always sample: false - version_added: "2.10" + version_added: "1.0.0" labels: description: User-defined labels (key-value pairs) type: dict diff --git a/plugins/modules/hcloud_floating_ip_info.py b/plugins/modules/hcloud_floating_ip_info.py index 0f80808..95086c6 100644 --- a/plugins/modules/hcloud_floating_ip_info.py +++ b/plugins/modules/hcloud_floating_ip_info.py @@ -67,7 +67,7 @@ hcloud_floating_ip_info: returned: Always type: str sample: my-floating-ip - version_added: "2.10" + version_added: "1.0.0" description: description: Description of the Floating IP returned: always @@ -97,7 +97,7 @@ hcloud_floating_ip_info: description: True if the Floating IP is protected for deletion returned: always type: bool - version_added: "2.10" + version_added: "1.0.0" labels: description: User-defined labels (key-value pairs) returned: always @@ -174,7 +174,7 @@ def main(): is_old_facts = module._name == 'hcloud_floating_ip_facts' if is_old_facts: module.deprecate("The 'hcloud_floating_ip_facts' module has been renamed to 'hcloud_floating_ip_info', " - "and the renamed one no longer returns ansible_facts", version='2.13') + "and the renamed one no longer returns ansible_facts", version='2.0.0', collection_name="hetzner.hcloud") hcloud = AnsibleHcloudFloatingIPInfo(module) diff --git a/plugins/modules/hcloud_image_info.py b/plugins/modules/hcloud_image_info.py index 8f76481..2cd506d 100644 --- a/plugins/modules/hcloud_image_info.py +++ b/plugins/modules/hcloud_image_info.py @@ -187,7 +187,7 @@ def main(): is_old_facts = module._name == 'hcloud_image_facts' if is_old_facts: module.deprecate("The 'hcloud_image_facts' module has been renamed to 'hcloud_image_info', " - "and the renamed one no longer returns ansible_facts", version='2.13') + "and the renamed one no longer returns ansible_facts", version='2.0.0', collection_name="hetzner.hcloud") hcloud = AnsibleHcloudImageInfo(module) hcloud.get_images() diff --git a/plugins/modules/hcloud_location_info.py b/plugins/modules/hcloud_location_info.py index aab3643..bba440f 100644 --- a/plugins/modules/hcloud_location_info.py +++ b/plugins/modules/hcloud_location_info.py @@ -149,7 +149,7 @@ def main(): is_old_facts = module._name == 'hcloud_location_facts' if is_old_facts: module.deprecate("The 'hcloud_location_info' module has been renamed to 'hcloud_location_info', " - "and the renamed one no longer returns ansible_facts", version='2.13') + "and the renamed one no longer returns ansible_facts", version='2.0.0', collection_name="hetzner.hcloud") hcloud = AnsibleHcloudLocationInfo(module) hcloud.get_locations() diff --git a/plugins/modules/hcloud_network.py b/plugins/modules/hcloud_network.py index 0c3b994..3e04100 100644 --- a/plugins/modules/hcloud_network.py +++ b/plugins/modules/hcloud_network.py @@ -106,7 +106,7 @@ hcloud_network: type: bool returned: always sample: false - version_added: "2.10" + version_added: "1.0.0" labels: description: User-defined labels (key-value pairs) type: dict diff --git a/plugins/modules/hcloud_network_info.py b/plugins/modules/hcloud_network_info.py index 48c12a9..42e1865 100644 --- a/plugins/modules/hcloud_network_info.py +++ b/plugins/modules/hcloud_network_info.py @@ -92,7 +92,7 @@ hcloud_network_info: description: True if the network is protected for deletion returned: always type: bool - version_added: "2.10" + version_added: "1.0.0" labels: description: Labels of the network returned: always diff --git a/plugins/modules/hcloud_server.py b/plugins/modules/hcloud_server.py index 06c1057..d53b112 100644 --- a/plugins/modules/hcloud_server.py +++ b/plugins/modules/hcloud_server.py @@ -242,13 +242,13 @@ hcloud_server: type: bool returned: always sample: false - version_added: "2.10" + version_added: "1.0.0" rebuild_protection: description: True if server is protected for rebuild type: bool returned: always sample: false - version_added: "2.10" + version_added: "1.0.0" """ from ansible.module_utils.basic import AnsibleModule diff --git a/plugins/modules/hcloud_server_info.py b/plugins/modules/hcloud_server_info.py index 1e760f6..3a488d7 100644 --- a/plugins/modules/hcloud_server_info.py +++ b/plugins/modules/hcloud_server_info.py @@ -122,13 +122,13 @@ hcloud_server_info: type: bool returned: always sample: false - version_added: "2.10" + version_added: "1.0.0" rebuild_protection: description: True if server is protected for rebuild type: bool returned: always sample: false - version_added: "2.10" + version_added: "1.0.0" """ from ansible.module_utils.basic import AnsibleModule @@ -208,7 +208,7 @@ def main(): is_old_facts = module._name == 'hcloud_server_facts' if is_old_facts: module.deprecate("The 'hcloud_server_facts' module has been renamed to 'hcloud_server_info', " - "and the renamed one no longer returns ansible_facts", version='2.13') + "and the renamed one no longer returns ansible_facts", version='2.0.0', collection_name="hetzner.hcloud") hcloud = AnsibleHcloudServerInfo(module) hcloud.get_servers() diff --git a/plugins/modules/hcloud_server_type_info.py b/plugins/modules/hcloud_server_type_info.py index 393c956..8415de0 100644 --- a/plugins/modules/hcloud_server_type_info.py +++ b/plugins/modules/hcloud_server_type_info.py @@ -167,7 +167,7 @@ def main(): is_old_facts = module._name == 'hcloud_server_type_facts' if is_old_facts: module.deprecate("The 'hcloud_server_type_info' module has been renamed to 'hcloud_server_type_info', " - "and the renamed one no longer returns ansible_facts", version='2.13') + "and the renamed one no longer returns ansible_facts", version='2.0.0', collection_name="hetzner.hcloud") hcloud = AnsibleHcloudServerTypeInfo(module) hcloud.get_server_types() diff --git a/plugins/modules/hcloud_ssh_key_info.py b/plugins/modules/hcloud_ssh_key_info.py index 4886277..d56a40f 100644 --- a/plugins/modules/hcloud_ssh_key_info.py +++ b/plugins/modules/hcloud_ssh_key_info.py @@ -158,7 +158,7 @@ def main(): is_old_facts = module._name == 'hcloud_ssh_key_facts' if is_old_facts: module.deprecate("The 'hcloud_ssh_key_facts' module has been renamed to 'hcloud_ssh_key_info', " - "and the renamed one no longer returns ansible_facts", version='2.13') + "and the renamed one no longer returns ansible_facts", version='2.0.0', collection_name="hetzner.hcloud") hcloud = AnsibleHcloudSSHKeyInfo(module) hcloud.get_ssh_keys() diff --git a/plugins/modules/hcloud_volume.py b/plugins/modules/hcloud_volume.py index 567fc0b..98f2d2c 100644 --- a/plugins/modules/hcloud_volume.py +++ b/plugins/modules/hcloud_volume.py @@ -140,7 +140,7 @@ hcloud_volume: returned: always type: str sample: /dev/disk/by-id/scsi-0HC_Volume_12345 - version_added: "2.10" + version_added: "1.0.0" location: description: Location name where the Volume is located at type: str @@ -163,7 +163,7 @@ hcloud_volume: type: bool returned: always sample: false - version_added: "2.10" + version_added: "1.0.0" """ from ansible.module_utils.basic import AnsibleModule diff --git a/plugins/modules/hcloud_volume_info.py b/plugins/modules/hcloud_volume_info.py index 705a48b..e34958d 100644 --- a/plugins/modules/hcloud_volume_info.py +++ b/plugins/modules/hcloud_volume_info.py @@ -79,7 +79,7 @@ hcloud_volume_info: returned: always type: str sample: /dev/disk/by-id/scsi-0HC_Volume_12345 - version_added: "2.10" + version_added: "1.0.0" location: description: Name of the location where the Volume resides in returned: always @@ -94,7 +94,7 @@ hcloud_volume_info: description: True if the Volume is protected for deletion returned: always type: bool - version_added: "2.10" + version_added: "1.0.0" labels: description: User-defined labels (key-value pairs) returned: always @@ -175,7 +175,7 @@ def main(): is_old_facts = module._name == 'hcloud_volume_facts' if is_old_facts: module.deprecate("The 'hcloud_volume_facts' module has been renamed to 'hcloud_volume_info', " - "and the renamed one no longer returns ansible_facts", version='2.13') + "and the renamed one no longer returns ansible_facts", version='2.0.0', collection_name="hetzner.hcloud") hcloud = AnsibleHcloudVolumeInfo(module)