Fix sanity issues (#6)

This commit is contained in:
Lukas Kämmerling 2020-06-12 10:27:00 +02:00 committed by GitHub
parent a2d00f8d7a
commit e893006906
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 21 additions and 21 deletions

View file

@ -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()

View file

@ -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

View file

@ -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)

View file

@ -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()

View file

@ -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()

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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()

View file

@ -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()

View file

@ -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()

View file

@ -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

View file

@ -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)