ec2_placement_group: Make name 'required' to match the documentation (#65555)
Previously you'd get one of the following behaviours: - A boto3 error - Nothing would change - An error that you're not allowed to change the strategy So of the bahaviour would depend on the random order that AWS returns the list of all Placement Groups
This commit is contained in:
parent
a56139e792
commit
eac7d2a958
3 changed files with 3 additions and 2 deletions
2
changelogs/fragments/65555-amazon-sanity-required.yml
Normal file
2
changelogs/fragments/65555-amazon-sanity-required.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
minor_changes:
|
||||
- ec2_placement_group - make `name` a required field.
|
|
@ -170,7 +170,7 @@ def main():
|
|||
argument_spec = ec2_argument_spec()
|
||||
argument_spec.update(
|
||||
dict(
|
||||
name=dict(type='str'),
|
||||
name=dict(required=True, type='str'),
|
||||
state=dict(default='present', choices=['present', 'absent']),
|
||||
strategy=dict(default='cluster', choices=['cluster', 'spread'])
|
||||
)
|
||||
|
|
|
@ -492,7 +492,6 @@ lib/ansible/modules/cloud/alicloud/ali_instance.py validate-modules:parameter-ty
|
|||
lib/ansible/modules/cloud/alicloud/ali_instance_info.py validate-modules:doc-missing-type
|
||||
lib/ansible/modules/cloud/alicloud/ali_instance_info.py validate-modules:doc-required-mismatch
|
||||
lib/ansible/modules/cloud/alicloud/ali_instance_info.py validate-modules:parameter-type-not-in-doc
|
||||
lib/ansible/modules/cloud/amazon/ec2_placement_group.py validate-modules:doc-required-mismatch
|
||||
lib/ansible/modules/cloud/amazon/iam.py validate-modules:doc-required-mismatch
|
||||
lib/ansible/modules/cloud/amazon/iam_cert.py validate-modules:doc-required-mismatch
|
||||
lib/ansible/modules/cloud/amazon/iam_policy.py validate-modules:doc-required-mismatch
|
||||
|
|
Loading…
Reference in a new issue