mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Tidy up sanity checks ignore lines modules (batch 8) (#2006)
* fixed validation-modules for plugins/modules/cloud/smartos/smartos_image_info.py * fixed validation-modules for plugins/modules/cloud/rackspace/rax_scaling_group.py * fixed validation-modules for plugins/modules/cloud/rackspace/rax_cdb_user.py * fixed validation-modules for plugins/modules/cloud/rackspace/rax.py * Tidy up sanity checks ignore lines modules (batch 8) * added changelog fragment * rolled back removal of parameter from rax.py
This commit is contained in:
parent
49d9a257ef
commit
f8859af377
8 changed files with 18 additions and 17 deletions
4
changelogs/fragments/2006-valmod-batch8.yml
Normal file
4
changelogs/fragments/2006-valmod-batch8.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
minor_changes:
|
||||||
|
- rax - elements of list parameters are now validated (https://github.com/ansible-collections/community.general/pull/2006).
|
||||||
|
- rax_cdb_user - elements of list parameters are now validated (https://github.com/ansible-collections/community.general/pull/2006).
|
||||||
|
- rax_scaling_group - elements of list parameters are now validated (https://github.com/ansible-collections/community.general/pull/2006).
|
|
@ -110,6 +110,7 @@ options:
|
||||||
with this image
|
with this image
|
||||||
instance_ids:
|
instance_ids:
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
description:
|
description:
|
||||||
- list of instance ids, currently only used when state='absent' to
|
- list of instance ids, currently only used when state='absent' to
|
||||||
remove instances
|
remove instances
|
||||||
|
@ -129,6 +130,7 @@ options:
|
||||||
- Name to give the instance
|
- Name to give the instance
|
||||||
networks:
|
networks:
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
description:
|
description:
|
||||||
- The network to attach to the instances. If specified, you must include
|
- The network to attach to the instances. If specified, you must include
|
||||||
ALL networks including the public and private interfaces. Can be C(id)
|
ALL networks including the public and private interfaces. Can be C(id)
|
||||||
|
@ -810,11 +812,11 @@ def main():
|
||||||
flavor=dict(),
|
flavor=dict(),
|
||||||
group=dict(),
|
group=dict(),
|
||||||
image=dict(),
|
image=dict(),
|
||||||
instance_ids=dict(type='list'),
|
instance_ids=dict(type='list', elements='str'),
|
||||||
key_name=dict(aliases=['keypair']),
|
key_name=dict(aliases=['keypair']),
|
||||||
meta=dict(type='dict', default={}),
|
meta=dict(type='dict', default={}),
|
||||||
name=dict(),
|
name=dict(),
|
||||||
networks=dict(type='list', default=['public', 'private']),
|
networks=dict(type='list', elements='str', default=['public', 'private']),
|
||||||
service=dict(),
|
service=dict(),
|
||||||
state=dict(default='present', choices=['present', 'absent']),
|
state=dict(default='present', choices=['present', 'absent']),
|
||||||
user_data=dict(no_log=True),
|
user_data=dict(no_log=True),
|
||||||
|
|
|
@ -30,6 +30,7 @@ options:
|
||||||
required: yes
|
required: yes
|
||||||
databases:
|
databases:
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
description:
|
description:
|
||||||
- Name of the databases that the user can access
|
- Name of the databases that the user can access
|
||||||
default: []
|
default: []
|
||||||
|
@ -189,7 +190,7 @@ def main():
|
||||||
cdb_id=dict(type='str', required=True),
|
cdb_id=dict(type='str', required=True),
|
||||||
db_username=dict(type='str', required=True),
|
db_username=dict(type='str', required=True),
|
||||||
db_password=dict(type='str', required=True, no_log=True),
|
db_password=dict(type='str', required=True, no_log=True),
|
||||||
databases=dict(type='list', default=[]),
|
databases=dict(type='list', elements='str', default=[]),
|
||||||
host=dict(type='str', default='%'),
|
host=dict(type='str', default='%'),
|
||||||
state=dict(default='present', choices=['present', 'absent'])
|
state=dict(default='present', choices=['present', 'absent'])
|
||||||
)
|
)
|
||||||
|
|
|
@ -53,6 +53,7 @@ options:
|
||||||
- key pair to use on the instance
|
- key pair to use on the instance
|
||||||
loadbalancers:
|
loadbalancers:
|
||||||
type: list
|
type: list
|
||||||
|
elements: dict
|
||||||
description:
|
description:
|
||||||
- List of load balancer C(id) and C(port) hashes
|
- List of load balancer C(id) and C(port) hashes
|
||||||
max_entities:
|
max_entities:
|
||||||
|
@ -78,6 +79,7 @@ options:
|
||||||
required: true
|
required: true
|
||||||
networks:
|
networks:
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
description:
|
description:
|
||||||
- The network to attach to the instances. If specified, you must include
|
- The network to attach to the instances. If specified, you must include
|
||||||
ALL networks including the public and private interfaces. Can be C(id)
|
ALL networks including the public and private interfaces. Can be C(id)
|
||||||
|
@ -376,12 +378,12 @@ def main():
|
||||||
flavor=dict(required=True),
|
flavor=dict(required=True),
|
||||||
image=dict(required=True),
|
image=dict(required=True),
|
||||||
key_name=dict(),
|
key_name=dict(),
|
||||||
loadbalancers=dict(type='list'),
|
loadbalancers=dict(type='list', elements='dict'),
|
||||||
meta=dict(type='dict', default={}),
|
meta=dict(type='dict', default={}),
|
||||||
min_entities=dict(type='int', required=True),
|
min_entities=dict(type='int', required=True),
|
||||||
max_entities=dict(type='int', required=True),
|
max_entities=dict(type='int', required=True),
|
||||||
name=dict(required=True),
|
name=dict(required=True),
|
||||||
networks=dict(type='list', default=['public', 'private']),
|
networks=dict(type='list', elements='str', default=['public', 'private']),
|
||||||
server_name=dict(required=True),
|
server_name=dict(required=True),
|
||||||
state=dict(default='present', choices=['present', 'absent']),
|
state=dict(default='present', choices=['present', 'absent']),
|
||||||
user_data=dict(no_log=True),
|
user_data=dict(no_log=True),
|
||||||
|
|
|
@ -24,6 +24,7 @@ options:
|
||||||
manifest and 'published_date', 'published', 'source', 'clones',
|
manifest and 'published_date', 'published', 'source', 'clones',
|
||||||
and 'size'. More information can be found at U(https://smartos.org/man/1m/imgadm)
|
and 'size'. More information can be found at U(https://smartos.org/man/1m/imgadm)
|
||||||
under 'imgadm list'.
|
under 'imgadm list'.
|
||||||
|
type: str
|
||||||
'''
|
'''
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
|
|
|
@ -65,14 +65,11 @@ plugins/modules/cloud/ovirt/ovirt_vmpool_facts.py validate-modules:doc-missing-t
|
||||||
plugins/modules/cloud/ovirt/ovirt_vmpool_facts.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/ovirt/ovirt_vmpool_facts.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/rackspace/rax.py use-argspec-type-path # fix needed
|
plugins/modules/cloud/rackspace/rax.py use-argspec-type-path # fix needed
|
||||||
plugins/modules/cloud/rackspace/rax.py validate-modules:doc-missing-type
|
plugins/modules/cloud/rackspace/rax.py validate-modules:doc-missing-type
|
||||||
plugins/modules/cloud/rackspace/rax.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/rackspace/rax.py validate-modules:undocumented-parameter
|
plugins/modules/cloud/rackspace/rax.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/cloud/rackspace/rax_cdb_user.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/rackspace/rax_files.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/cloud/rackspace/rax_files.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
||||||
plugins/modules/cloud/rackspace/rax_mon_notification_plan.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/rackspace/rax_mon_notification_plan.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path # fix needed
|
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path # fix needed, expanduser() applied to dict values
|
||||||
plugins/modules/cloud/rackspace/rax_scaling_group.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/scaleway/scaleway_image_facts.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_image_facts.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/scaleway/scaleway_image_info.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_image_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/scaleway/scaleway_ip_facts.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_ip_facts.py validate-modules:return-syntax-error
|
||||||
|
@ -87,7 +84,6 @@ plugins/modules/cloud/scaleway/scaleway_snapshot_facts.py validate-modules:retur
|
||||||
plugins/modules/cloud/scaleway/scaleway_snapshot_info.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_snapshot_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/scaleway/scaleway_volume_facts.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_volume_facts.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/scaleway/scaleway_volume_info.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_volume_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/smartos/smartos_image_info.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/smartos/vmadm.py validate-modules:undocumented-parameter
|
plugins/modules/cloud/smartos/vmadm.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py validate-modules:parameter-list-no-elements
|
||||||
|
|
|
@ -64,14 +64,11 @@ plugins/modules/cloud/ovirt/ovirt_vmpool_facts.py validate-modules:doc-missing-t
|
||||||
plugins/modules/cloud/ovirt/ovirt_vmpool_facts.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/ovirt/ovirt_vmpool_facts.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/rackspace/rax.py use-argspec-type-path # fix needed
|
plugins/modules/cloud/rackspace/rax.py use-argspec-type-path # fix needed
|
||||||
plugins/modules/cloud/rackspace/rax.py validate-modules:doc-missing-type
|
plugins/modules/cloud/rackspace/rax.py validate-modules:doc-missing-type
|
||||||
plugins/modules/cloud/rackspace/rax.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/rackspace/rax.py validate-modules:undocumented-parameter
|
plugins/modules/cloud/rackspace/rax.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/cloud/rackspace/rax_cdb_user.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/rackspace/rax_files.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/cloud/rackspace/rax_files.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
||||||
plugins/modules/cloud/rackspace/rax_mon_notification_plan.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/rackspace/rax_mon_notification_plan.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path # fix needed
|
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path # fix needed, expanduser() applied to dict values
|
||||||
plugins/modules/cloud/rackspace/rax_scaling_group.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/cloud/scaleway/scaleway_image_facts.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_image_facts.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/scaleway/scaleway_image_info.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_image_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/scaleway/scaleway_ip_facts.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_ip_facts.py validate-modules:return-syntax-error
|
||||||
|
@ -86,7 +83,6 @@ plugins/modules/cloud/scaleway/scaleway_snapshot_facts.py validate-modules:retur
|
||||||
plugins/modules/cloud/scaleway/scaleway_snapshot_info.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_snapshot_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/scaleway/scaleway_volume_facts.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_volume_facts.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/scaleway/scaleway_volume_info.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_volume_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/smartos/smartos_image_info.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/smartos/vmadm.py validate-modules:undocumented-parameter
|
plugins/modules/cloud/smartos/vmadm.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py validate-modules:parameter-list-no-elements
|
plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py validate-modules:parameter-list-no-elements
|
||||||
|
|
|
@ -97,7 +97,7 @@ plugins/modules/cloud/rackspace/rax.py use-argspec-type-path
|
||||||
plugins/modules/cloud/rackspace/rax.py validate-modules:doc-missing-type
|
plugins/modules/cloud/rackspace/rax.py validate-modules:doc-missing-type
|
||||||
plugins/modules/cloud/rackspace/rax.py validate-modules:undocumented-parameter
|
plugins/modules/cloud/rackspace/rax.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
plugins/modules/cloud/rackspace/rax_files_objects.py use-argspec-type-path
|
||||||
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path
|
plugins/modules/cloud/rackspace/rax_scaling_group.py use-argspec-type-path # fix needed, expanduser() applied to dict values
|
||||||
plugins/modules/cloud/scaleway/scaleway_image_facts.py validate-modules:deprecation-mismatch
|
plugins/modules/cloud/scaleway/scaleway_image_facts.py validate-modules:deprecation-mismatch
|
||||||
plugins/modules/cloud/scaleway/scaleway_image_facts.py validate-modules:invalid-documentation
|
plugins/modules/cloud/scaleway/scaleway_image_facts.py validate-modules:invalid-documentation
|
||||||
plugins/modules/cloud/scaleway/scaleway_image_facts.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_image_facts.py validate-modules:return-syntax-error
|
||||||
|
@ -126,7 +126,6 @@ plugins/modules/cloud/scaleway/scaleway_volume_facts.py validate-modules:depreca
|
||||||
plugins/modules/cloud/scaleway/scaleway_volume_facts.py validate-modules:invalid-documentation
|
plugins/modules/cloud/scaleway/scaleway_volume_facts.py validate-modules:invalid-documentation
|
||||||
plugins/modules/cloud/scaleway/scaleway_volume_facts.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_volume_facts.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/scaleway/scaleway_volume_info.py validate-modules:return-syntax-error
|
plugins/modules/cloud/scaleway/scaleway_volume_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/cloud/smartos/smartos_image_info.py validate-modules:doc-missing-type
|
|
||||||
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/smartos/vmadm.py validate-modules:parameter-type-not-in-doc
|
||||||
plugins/modules/cloud/smartos/vmadm.py validate-modules:undocumented-parameter
|
plugins/modules/cloud/smartos/vmadm.py validate-modules:undocumented-parameter
|
||||||
plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py validate-modules:parameter-type-not-in-doc
|
plugins/modules/cloud/spotinst/spotinst_aws_elastigroup.py validate-modules:parameter-type-not-in-doc
|
||||||
|
|
Loading…
Reference in a new issue