mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
spotinst_aws_elasticgroup: sanity checks (#5553)
* spotinst_aws_elastigroup: add elements to parameter do_not_update * spotinst_aws_elastigroup: add docs for parameter token * add missing docs * add changelog fragment * Update plugins/modules/spotinst_aws_elastigroup.py Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
9874462abb
commit
270dc133b3
7 changed files with 28 additions and 17 deletions
|
@ -0,0 +1,2 @@
|
||||||
|
minor_changes:
|
||||||
|
- spotinst_aws_elastigroup - add ``elements`` attribute when missing in ``list`` parameters (https://github.com/ansible-collections/community.general/pull/5553).
|
|
@ -35,6 +35,13 @@ options:
|
||||||
By default this is retrieved from the credentials path.
|
By default this is retrieved from the credentials path.
|
||||||
type: str
|
type: str
|
||||||
|
|
||||||
|
token:
|
||||||
|
description:
|
||||||
|
- A Personal API Access Token issued by Spotinst.
|
||||||
|
- >-
|
||||||
|
When not specified, the module will try to obtain it, in that order, from: environment variable C(SPOTINST_TOKEN), or from the credentials path.
|
||||||
|
type: str
|
||||||
|
|
||||||
availability_vs_cost:
|
availability_vs_cost:
|
||||||
description:
|
description:
|
||||||
- The strategy orientation.
|
- The strategy orientation.
|
||||||
|
@ -507,8 +514,25 @@ options:
|
||||||
description:
|
description:
|
||||||
- TODO document.
|
- TODO document.
|
||||||
type: list
|
type: list
|
||||||
|
elements: str
|
||||||
default: []
|
default: []
|
||||||
|
|
||||||
|
multai_token:
|
||||||
|
description:
|
||||||
|
- Token used for Multai configuration.
|
||||||
|
type: str
|
||||||
|
|
||||||
|
multai_load_balancers:
|
||||||
|
description:
|
||||||
|
- Configuration parameters for Multai load balancers.
|
||||||
|
type: list
|
||||||
|
elements: dict
|
||||||
|
|
||||||
|
elastic_beanstalk:
|
||||||
|
description:
|
||||||
|
- Placeholder parameter for future implementation of Elastic Beanstalk configurations.
|
||||||
|
type: dict
|
||||||
|
|
||||||
'''
|
'''
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Basic configuration YAML example
|
# Basic configuration YAML example
|
||||||
|
@ -1455,7 +1479,7 @@ def main():
|
||||||
block_device_mappings=dict(type='list', elements='dict'),
|
block_device_mappings=dict(type='list', elements='dict'),
|
||||||
chef=dict(type='dict'),
|
chef=dict(type='dict'),
|
||||||
credentials_path=dict(type='path', default="~/.spotinst/credentials"),
|
credentials_path=dict(type='path', default="~/.spotinst/credentials"),
|
||||||
do_not_update=dict(default=[], type='list'),
|
do_not_update=dict(default=[], type='list', elements='str'),
|
||||||
down_scaling_policies=dict(type='list', elements='dict'),
|
down_scaling_policies=dict(type='list', elements='dict'),
|
||||||
draining_timeout=dict(type='int'),
|
draining_timeout=dict(type='int'),
|
||||||
ebs_optimized=dict(type='bool'),
|
ebs_optimized=dict(type='bool'),
|
||||||
|
@ -1479,7 +1503,7 @@ def main():
|
||||||
mesosphere=dict(type='dict'),
|
mesosphere=dict(type='dict'),
|
||||||
min_size=dict(type='int', required=True),
|
min_size=dict(type='int', required=True),
|
||||||
monitoring=dict(type='str'),
|
monitoring=dict(type='str'),
|
||||||
multai_load_balancers=dict(type='list'),
|
multai_load_balancers=dict(type='list', elements='dict'),
|
||||||
multai_token=dict(type='str', no_log=True),
|
multai_token=dict(type='str', no_log=True),
|
||||||
name=dict(type='str', required=True),
|
name=dict(type='str', required=True),
|
||||||
network_interfaces=dict(type='list', elements='dict'),
|
network_interfaces=dict(type='list', elements='dict'),
|
||||||
|
|
|
@ -28,9 +28,6 @@ plugins/modules/rax_scaling_group.py use-argspec-type-path # fix needed, expand
|
||||||
plugins/modules/redhat_subscription.py validate-modules:return-syntax-error
|
plugins/modules/redhat_subscription.py validate-modules:return-syntax-error
|
||||||
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/scaleway_organization_info.py validate-modules:return-syntax-error
|
plugins/modules/scaleway_organization_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:undocumented-parameter
|
|
||||||
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/udm_user.py validate-modules:parameter-list-no-elements
|
plugins/modules/udm_user.py validate-modules:parameter-list-no-elements
|
||||||
|
|
|
@ -23,9 +23,6 @@ plugins/modules/rax_scaling_group.py use-argspec-type-path # fix needed, expand
|
||||||
plugins/modules/redhat_subscription.py validate-modules:return-syntax-error
|
plugins/modules/redhat_subscription.py validate-modules:return-syntax-error
|
||||||
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/scaleway_organization_info.py validate-modules:return-syntax-error
|
plugins/modules/scaleway_organization_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:undocumented-parameter
|
|
||||||
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/udm_user.py validate-modules:parameter-list-no-elements
|
plugins/modules/udm_user.py validate-modules:parameter-list-no-elements
|
||||||
|
|
|
@ -23,9 +23,6 @@ plugins/modules/rax_scaling_group.py use-argspec-type-path # fix needed, expand
|
||||||
plugins/modules/redhat_subscription.py validate-modules:return-syntax-error
|
plugins/modules/redhat_subscription.py validate-modules:return-syntax-error
|
||||||
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/scaleway_organization_info.py validate-modules:return-syntax-error
|
plugins/modules/scaleway_organization_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:undocumented-parameter
|
|
||||||
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/udm_user.py validate-modules:parameter-list-no-elements
|
plugins/modules/udm_user.py validate-modules:parameter-list-no-elements
|
||||||
|
|
|
@ -24,9 +24,6 @@ plugins/modules/rax_scaling_group.py use-argspec-type-path # fix needed, expand
|
||||||
plugins/modules/redhat_subscription.py validate-modules:return-syntax-error
|
plugins/modules/redhat_subscription.py validate-modules:return-syntax-error
|
||||||
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/scaleway_organization_info.py validate-modules:return-syntax-error
|
plugins/modules/scaleway_organization_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:undocumented-parameter
|
|
||||||
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/udm_user.py import-3.11 # Uses deprecated stdlib library 'crypt'
|
plugins/modules/udm_user.py import-3.11 # Uses deprecated stdlib library 'crypt'
|
||||||
|
|
|
@ -24,9 +24,6 @@ plugins/modules/rax_scaling_group.py use-argspec-type-path # fix needed, expand
|
||||||
plugins/modules/redhat_subscription.py validate-modules:return-syntax-error
|
plugins/modules/redhat_subscription.py validate-modules:return-syntax-error
|
||||||
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
plugins/modules/rhevm.py validate-modules:parameter-state-invalid-choice
|
||||||
plugins/modules/scaleway_organization_info.py validate-modules:return-syntax-error
|
plugins/modules/scaleway_organization_info.py validate-modules:return-syntax-error
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:parameter-list-no-elements
|
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:parameter-type-not-in-doc
|
|
||||||
plugins/modules/spotinst_aws_elastigroup.py validate-modules:undocumented-parameter
|
|
||||||
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
plugins/modules/ssh_config.py use-argspec-type-path # Required since module uses other methods to specify path
|
||||||
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
plugins/modules/udm_share.py validate-modules:parameter-list-no-elements
|
||||||
plugins/modules/udm_user.py import-3.11 # Uses deprecated stdlib library 'crypt'
|
plugins/modules/udm_user.py import-3.11 # Uses deprecated stdlib library 'crypt'
|
||||||
|
|
Loading…
Reference in a new issue