mirror of
https://opendev.org/openstack/ansible-collections-openstack.git
synced 2026-07-25 01:04:28 +00:00
Ensure documented choices match spec
Change-Id: Ia40e846f970a05a894601a7a37af0231f136bab6
This commit is contained in:
@@ -37,11 +37,13 @@ options:
|
|||||||
description:
|
description:
|
||||||
- The format of the disk that is getting uploaded
|
- The format of the disk that is getting uploaded
|
||||||
default: qcow2
|
default: qcow2
|
||||||
|
choices: ['ami', 'ari', 'aki', 'vhd', 'vmdk', 'raw', 'qcow2', 'vdi', 'iso', 'vhdx', 'ploop']
|
||||||
type: str
|
type: str
|
||||||
container_format:
|
container_format:
|
||||||
description:
|
description:
|
||||||
- The format of the container
|
- The format of the container
|
||||||
default: bare
|
default: bare
|
||||||
|
choices: ['ami', 'aki', 'ari', 'bare', 'ovf', 'ova', 'docker']
|
||||||
type: str
|
type: str
|
||||||
owner:
|
owner:
|
||||||
description:
|
description:
|
||||||
|
|||||||
@@ -239,7 +239,7 @@ def main():
|
|||||||
aliases=['skip_update_of_driver_password'],
|
aliases=['skip_update_of_driver_password'],
|
||||||
deprecated_aliases=[dict(name='skip_update_of_driver_password', version='2.14')]
|
deprecated_aliases=[dict(name='skip_update_of_driver_password', version='2.14')]
|
||||||
),
|
),
|
||||||
state=dict(required=False, default='present')
|
state=dict(required=False, default='present', choices=['present', 'absent'])
|
||||||
)
|
)
|
||||||
module_kwargs = openstack_module_kwargs()
|
module_kwargs = openstack_module_kwargs()
|
||||||
module = AnsibleModule(argument_spec, **module_kwargs)
|
module = AnsibleModule(argument_spec, **module_kwargs)
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ options:
|
|||||||
- A value of present sets the quota and a value of absent resets the quota to system defaults.
|
- A value of present sets the quota and a value of absent resets the quota to system defaults.
|
||||||
default: present
|
default: present
|
||||||
type: str
|
type: str
|
||||||
|
choices: ['absent', 'present']
|
||||||
backup_gigabytes:
|
backup_gigabytes:
|
||||||
description: Maximum size of backups in GB's.
|
description: Maximum size of backups in GB's.
|
||||||
type: int
|
type: int
|
||||||
|
|||||||
@@ -47,6 +47,7 @@ options:
|
|||||||
- The IP version of the subnet 4 or 6
|
- The IP version of the subnet 4 or 6
|
||||||
default: 4
|
default: 4
|
||||||
type: str
|
type: str
|
||||||
|
choices: ['4', '6']
|
||||||
enable_dhcp:
|
enable_dhcp:
|
||||||
description:
|
description:
|
||||||
- Whether DHCP should be enabled for this subnet.
|
- Whether DHCP should be enabled for this subnet.
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
plugins/module_utils/openstack.py future-import-boilerplate
|
plugins/module_utils/openstack.py future-import-boilerplate
|
||||||
plugins/module_utils/openstack.py metaclass-boilerplate
|
plugins/module_utils/openstack.py metaclass-boilerplate
|
||||||
plugins/modules/os_image.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/os_ironic.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/os_quota.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/os_subnet.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/doc_fragments/openstack.py future-import-boilerplate
|
plugins/doc_fragments/openstack.py future-import-boilerplate
|
||||||
plugins/doc_fragments/openstack.py metaclass-boilerplate
|
plugins/doc_fragments/openstack.py metaclass-boilerplate
|
||||||
tests/unit/mock/path.py future-import-boilerplate
|
tests/unit/mock/path.py future-import-boilerplate
|
||||||
|
|||||||
@@ -1,10 +1,5 @@
|
|||||||
plugins/module_utils/openstack.py future-import-boilerplate
|
plugins/module_utils/openstack.py future-import-boilerplate
|
||||||
plugins/module_utils/openstack.py metaclass-boilerplate
|
plugins/module_utils/openstack.py metaclass-boilerplate
|
||||||
plugins/modules/os_image.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/os_ironic.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/os_ironic_node.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/os_quota.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/os_subnet.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/doc_fragments/openstack.py future-import-boilerplate
|
plugins/doc_fragments/openstack.py future-import-boilerplate
|
||||||
plugins/doc_fragments/openstack.py metaclass-boilerplate
|
plugins/doc_fragments/openstack.py metaclass-boilerplate
|
||||||
tests/unit/mock/path.py future-import-boilerplate
|
tests/unit/mock/path.py future-import-boilerplate
|
||||||
|
|||||||
Reference in New Issue
Block a user