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:
Mark Chappell 2019-12-09 10:05:36 +01:00 committed by Abhijit Menon-Sen
parent a56139e792
commit eac7d2a958
3 changed files with 3 additions and 2 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- ec2_placement_group - make `name` a required field.

View file

@ -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'])
)

View file

@ -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