Fix argument spec for os_subnet and os_zone
Ansible argument spec provides facility to provide choices for the given parameter. Module os_subnet and os_zone spells 'choices' incorrectly. This change fixes these modules, by changing 'choice' to 'choices'. Original Upstream PR: https://github.com/ansible/ansible/pull/65497 Change-Id: I3eed5feeef1234996f22bf8dfe7ecec0bc8eb298 Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
7c52b83b52
commit
ead550d34e
@ -234,8 +234,8 @@ def main():
|
|||||||
allocation_pool_start=dict(type='str'),
|
allocation_pool_start=dict(type='str'),
|
||||||
allocation_pool_end=dict(type='str'),
|
allocation_pool_end=dict(type='str'),
|
||||||
host_routes=dict(type='list', default=None),
|
host_routes=dict(type='list', default=None),
|
||||||
ipv6_ra_mode=dict(type='str', choice=ipv6_mode_choices),
|
ipv6_ra_mode=dict(type='str', choices=ipv6_mode_choices),
|
||||||
ipv6_address_mode=dict(type='str', choice=ipv6_mode_choices),
|
ipv6_address_mode=dict(type='str', choices=ipv6_mode_choices),
|
||||||
use_default_subnetpool=dict(type='bool', default=False),
|
use_default_subnetpool=dict(type='bool', default=False),
|
||||||
extra_specs=dict(type='dict', default=dict()),
|
extra_specs=dict(type='dict', default=dict()),
|
||||||
state=dict(type='str', default='present', choices=['absent', 'present']),
|
state=dict(type='str', default='present', choices=['absent', 'present']),
|
||||||
|
@ -163,7 +163,7 @@ def _wait(timeout, cloud, zone, state, module, sdk):
|
|||||||
def main():
|
def main():
|
||||||
argument_spec = openstack_full_argument_spec(
|
argument_spec = openstack_full_argument_spec(
|
||||||
name=dict(required=True),
|
name=dict(required=True),
|
||||||
zone_type=dict(required=False, choice=['primary', 'secondary']),
|
zone_type=dict(required=False, choices=['primary', 'secondary']),
|
||||||
email=dict(required=False, default=None),
|
email=dict(required=False, default=None),
|
||||||
description=dict(required=False, default=None),
|
description=dict(required=False, default=None),
|
||||||
ttl=dict(required=False, default=None, type='int'),
|
ttl=dict(required=False, default=None, type='int'),
|
||||||
|
@ -118,7 +118,6 @@ plugins/modules/os_volume.py validate-modules:doc-missing-type
|
|||||||
plugins/modules/os_volume.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/os_volume.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/os_volume.py validate-modules:undocumented-parameter
|
plugins/modules/os_volume.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/os_volume_snapshot.py validate-modules:doc-missing-type
|
plugins/modules/os_volume_snapshot.py validate-modules:doc-missing-type
|
||||||
plugins/modules/os_zone.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/os_zone.py validate-modules:doc-missing-type
|
plugins/modules/os_zone.py validate-modules:doc-missing-type
|
||||||
plugins/modules/os_zone.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/os_zone.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/doc_fragments/openstack.py future-import-boilerplate
|
plugins/doc_fragments/openstack.py future-import-boilerplate
|
||||||
|
@ -107,7 +107,6 @@ plugins/modules/os_volume.py validate-modules:doc-missing-type
|
|||||||
plugins/modules/os_volume.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/os_volume.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/os_volume.py validate-modules:undocumented-parameter
|
plugins/modules/os_volume.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/os_volume_snapshot.py validate-modules:doc-missing-type
|
plugins/modules/os_volume_snapshot.py validate-modules:doc-missing-type
|
||||||
plugins/modules/os_zone.py validate-modules:doc-choices-do-not-match-spec
|
|
||||||
plugins/modules/os_zone.py validate-modules:doc-missing-type
|
plugins/modules/os_zone.py validate-modules:doc-missing-type
|
||||||
plugins/modules/os_zone.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/os_zone.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/doc_fragments/openstack.py future-import-boilerplate
|
plugins/doc_fragments/openstack.py future-import-boilerplate
|
||||||
|
Loading…
Reference in New Issue
Block a user