mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2024-11-10 06:34:13 +00:00
Fix sanity issues (#6)
This commit is contained in:
parent
a2d00f8d7a
commit
e893006906
13 changed files with 21 additions and 21 deletions
|
@ -150,7 +150,7 @@ def main():
|
||||||
is_old_facts = module._name == 'hcloud_datacenter_facts'
|
is_old_facts = module._name == 'hcloud_datacenter_facts'
|
||||||
if is_old_facts:
|
if is_old_facts:
|
||||||
module.deprecate("The 'hcloud_datacenter_facts' module has been renamed to 'hcloud_datacenter_info', "
|
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 = AnsibleHcloudDatacenterInfo(module)
|
||||||
|
|
||||||
hcloud.get_datacenters()
|
hcloud.get_datacenters()
|
||||||
|
|
|
@ -161,7 +161,7 @@ hcloud_floating_ip:
|
||||||
type: bool
|
type: bool
|
||||||
returned: always
|
returned: always
|
||||||
sample: false
|
sample: false
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
labels:
|
labels:
|
||||||
description: User-defined labels (key-value pairs)
|
description: User-defined labels (key-value pairs)
|
||||||
type: dict
|
type: dict
|
||||||
|
|
|
@ -67,7 +67,7 @@ hcloud_floating_ip_info:
|
||||||
returned: Always
|
returned: Always
|
||||||
type: str
|
type: str
|
||||||
sample: my-floating-ip
|
sample: my-floating-ip
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
description:
|
description:
|
||||||
description: Description of the Floating IP
|
description: Description of the Floating IP
|
||||||
returned: always
|
returned: always
|
||||||
|
@ -97,7 +97,7 @@ hcloud_floating_ip_info:
|
||||||
description: True if the Floating IP is protected for deletion
|
description: True if the Floating IP is protected for deletion
|
||||||
returned: always
|
returned: always
|
||||||
type: bool
|
type: bool
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
labels:
|
labels:
|
||||||
description: User-defined labels (key-value pairs)
|
description: User-defined labels (key-value pairs)
|
||||||
returned: always
|
returned: always
|
||||||
|
@ -174,7 +174,7 @@ def main():
|
||||||
is_old_facts = module._name == 'hcloud_floating_ip_facts'
|
is_old_facts = module._name == 'hcloud_floating_ip_facts'
|
||||||
if is_old_facts:
|
if is_old_facts:
|
||||||
module.deprecate("The 'hcloud_floating_ip_facts' module has been renamed to 'hcloud_floating_ip_info', "
|
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)
|
hcloud = AnsibleHcloudFloatingIPInfo(module)
|
||||||
|
|
||||||
|
|
|
@ -187,7 +187,7 @@ def main():
|
||||||
is_old_facts = module._name == 'hcloud_image_facts'
|
is_old_facts = module._name == 'hcloud_image_facts'
|
||||||
if is_old_facts:
|
if is_old_facts:
|
||||||
module.deprecate("The 'hcloud_image_facts' module has been renamed to 'hcloud_image_info', "
|
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 = AnsibleHcloudImageInfo(module)
|
||||||
hcloud.get_images()
|
hcloud.get_images()
|
||||||
|
|
|
@ -149,7 +149,7 @@ def main():
|
||||||
is_old_facts = module._name == 'hcloud_location_facts'
|
is_old_facts = module._name == 'hcloud_location_facts'
|
||||||
if is_old_facts:
|
if is_old_facts:
|
||||||
module.deprecate("The 'hcloud_location_info' module has been renamed to 'hcloud_location_info', "
|
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 = AnsibleHcloudLocationInfo(module)
|
||||||
hcloud.get_locations()
|
hcloud.get_locations()
|
||||||
|
|
|
@ -106,7 +106,7 @@ hcloud_network:
|
||||||
type: bool
|
type: bool
|
||||||
returned: always
|
returned: always
|
||||||
sample: false
|
sample: false
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
labels:
|
labels:
|
||||||
description: User-defined labels (key-value pairs)
|
description: User-defined labels (key-value pairs)
|
||||||
type: dict
|
type: dict
|
||||||
|
|
|
@ -92,7 +92,7 @@ hcloud_network_info:
|
||||||
description: True if the network is protected for deletion
|
description: True if the network is protected for deletion
|
||||||
returned: always
|
returned: always
|
||||||
type: bool
|
type: bool
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
labels:
|
labels:
|
||||||
description: Labels of the network
|
description: Labels of the network
|
||||||
returned: always
|
returned: always
|
||||||
|
|
|
@ -242,13 +242,13 @@ hcloud_server:
|
||||||
type: bool
|
type: bool
|
||||||
returned: always
|
returned: always
|
||||||
sample: false
|
sample: false
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
rebuild_protection:
|
rebuild_protection:
|
||||||
description: True if server is protected for rebuild
|
description: True if server is protected for rebuild
|
||||||
type: bool
|
type: bool
|
||||||
returned: always
|
returned: always
|
||||||
sample: false
|
sample: false
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
|
@ -122,13 +122,13 @@ hcloud_server_info:
|
||||||
type: bool
|
type: bool
|
||||||
returned: always
|
returned: always
|
||||||
sample: false
|
sample: false
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
rebuild_protection:
|
rebuild_protection:
|
||||||
description: True if server is protected for rebuild
|
description: True if server is protected for rebuild
|
||||||
type: bool
|
type: bool
|
||||||
returned: always
|
returned: always
|
||||||
sample: false
|
sample: false
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
@ -208,7 +208,7 @@ def main():
|
||||||
is_old_facts = module._name == 'hcloud_server_facts'
|
is_old_facts = module._name == 'hcloud_server_facts'
|
||||||
if is_old_facts:
|
if is_old_facts:
|
||||||
module.deprecate("The 'hcloud_server_facts' module has been renamed to 'hcloud_server_info', "
|
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 = AnsibleHcloudServerInfo(module)
|
||||||
hcloud.get_servers()
|
hcloud.get_servers()
|
||||||
|
|
|
@ -167,7 +167,7 @@ def main():
|
||||||
is_old_facts = module._name == 'hcloud_server_type_facts'
|
is_old_facts = module._name == 'hcloud_server_type_facts'
|
||||||
if is_old_facts:
|
if is_old_facts:
|
||||||
module.deprecate("The 'hcloud_server_type_info' module has been renamed to 'hcloud_server_type_info', "
|
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 = AnsibleHcloudServerTypeInfo(module)
|
||||||
hcloud.get_server_types()
|
hcloud.get_server_types()
|
||||||
|
|
|
@ -158,7 +158,7 @@ def main():
|
||||||
is_old_facts = module._name == 'hcloud_ssh_key_facts'
|
is_old_facts = module._name == 'hcloud_ssh_key_facts'
|
||||||
if is_old_facts:
|
if is_old_facts:
|
||||||
module.deprecate("The 'hcloud_ssh_key_facts' module has been renamed to 'hcloud_ssh_key_info', "
|
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 = AnsibleHcloudSSHKeyInfo(module)
|
||||||
hcloud.get_ssh_keys()
|
hcloud.get_ssh_keys()
|
||||||
|
|
|
@ -140,7 +140,7 @@ hcloud_volume:
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /dev/disk/by-id/scsi-0HC_Volume_12345
|
sample: /dev/disk/by-id/scsi-0HC_Volume_12345
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
location:
|
location:
|
||||||
description: Location name where the Volume is located at
|
description: Location name where the Volume is located at
|
||||||
type: str
|
type: str
|
||||||
|
@ -163,7 +163,7 @@ hcloud_volume:
|
||||||
type: bool
|
type: bool
|
||||||
returned: always
|
returned: always
|
||||||
sample: false
|
sample: false
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from ansible.module_utils.basic import AnsibleModule
|
from ansible.module_utils.basic import AnsibleModule
|
||||||
|
|
|
@ -79,7 +79,7 @@ hcloud_volume_info:
|
||||||
returned: always
|
returned: always
|
||||||
type: str
|
type: str
|
||||||
sample: /dev/disk/by-id/scsi-0HC_Volume_12345
|
sample: /dev/disk/by-id/scsi-0HC_Volume_12345
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
location:
|
location:
|
||||||
description: Name of the location where the Volume resides in
|
description: Name of the location where the Volume resides in
|
||||||
returned: always
|
returned: always
|
||||||
|
@ -94,7 +94,7 @@ hcloud_volume_info:
|
||||||
description: True if the Volume is protected for deletion
|
description: True if the Volume is protected for deletion
|
||||||
returned: always
|
returned: always
|
||||||
type: bool
|
type: bool
|
||||||
version_added: "2.10"
|
version_added: "1.0.0"
|
||||||
labels:
|
labels:
|
||||||
description: User-defined labels (key-value pairs)
|
description: User-defined labels (key-value pairs)
|
||||||
returned: always
|
returned: always
|
||||||
|
@ -175,7 +175,7 @@ def main():
|
||||||
is_old_facts = module._name == 'hcloud_volume_facts'
|
is_old_facts = module._name == 'hcloud_volume_facts'
|
||||||
if is_old_facts:
|
if is_old_facts:
|
||||||
module.deprecate("The 'hcloud_volume_facts' module has been renamed to 'hcloud_volume_info', "
|
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)
|
hcloud = AnsibleHcloudVolumeInfo(module)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue