fixing status option in documentation (#53785)

changing status option to statuses in the documentation

Adding choices to the argument spec to match the documentation from AWS.
Adding 'REVOKED', 'FAILED' to statuses documentation to match implementation.

Removing E322, E323 ignores for aws_acm_facts
This commit is contained in:
Ben Carter 2019-03-22 04:39:36 +08:00 committed by Alicia Cozine
parent 6f77dbf66f
commit f99f88b034
2 changed files with 3 additions and 6 deletions

View file

@ -18,11 +18,10 @@ options:
- The domain name of an ACM certificate to limit the search to - The domain name of an ACM certificate to limit the search to
aliases: aliases:
- name - name
status: statuses:
description: description:
- Status to filter the certificate results - Status to filter the certificate results
choices: ['PENDING_VALIDATION', 'ISSUED', 'INACTIVE', 'EXPIRED', 'VALIDATION_TIMED_OUT'] choices: ['PENDING_VALIDATION', 'ISSUED', 'INACTIVE', 'EXPIRED', 'VALIDATION_TIMED_OUT', 'REVOKED', 'FAILED']
requirements: requirements:
- boto3 - boto3
author: author:
@ -311,7 +310,7 @@ def main():
argument_spec.update( argument_spec.update(
dict( dict(
domain_name=dict(aliases=['name']), domain_name=dict(aliases=['name']),
statuses=dict(type='list'), statuses=dict(type='list', choices=['PENDING_VALIDATION', 'ISSUED', 'INACTIVE', 'EXPIRED', 'VALIDATION_TIMED_OUT', 'REVOKED', 'FAILED']),
) )
) )
module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True) module = AnsibleModule(argument_spec=argument_spec, supports_check_mode=True)

View file

@ -1,7 +1,5 @@
lib/ansible/modules/cloud/amazon/_ec2_ami_find.py E322 lib/ansible/modules/cloud/amazon/_ec2_ami_find.py E322
lib/ansible/modules/cloud/amazon/_ec2_ami_find.py E323 lib/ansible/modules/cloud/amazon/_ec2_ami_find.py E323
lib/ansible/modules/cloud/amazon/aws_acm_facts.py E322
lib/ansible/modules/cloud/amazon/aws_acm_facts.py E323
lib/ansible/modules/cloud/amazon/aws_api_gateway.py E322 lib/ansible/modules/cloud/amazon/aws_api_gateway.py E322
lib/ansible/modules/cloud/amazon/aws_application_scaling_policy.py E322 lib/ansible/modules/cloud/amazon/aws_application_scaling_policy.py E322
lib/ansible/modules/cloud/amazon/aws_application_scaling_policy.py E326 lib/ansible/modules/cloud/amazon/aws_application_scaling_policy.py E326