Skip to content

Commit

Permalink
ipasmartcard_server_validate_ca_certs: Fix doc sections and agument spec
Browse files Browse the repository at this point in the history
ansible-test with ansible-2.14 is adding a lot of new tests to ensure
that the documentation section and the agument spec is complete. Needed
changes:

DOCUMENTATION section

- `type: list` needs to be set for list parameters
- `elements: str` needs to be given for list of string parameters
- `required` tags need to be fixed according to the `argument_spec`
- `author` needs to be given with the github user also: `Name (@user)`

argument_spec

- `elements="str"` needs to be added to all list of string parameters
  • Loading branch information
t-woerner committed Oct 28, 2022
1 parent 0dc49d0 commit 903e002
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@
description:
List of files containing CA certificates for the service certificate
files
required: yes
type: list
elements: str
required: no
author:
- Thomas Woerner
- Thomas Woerner (@t-woerner)
'''

EXAMPLES = '''
Expand All @@ -63,7 +65,8 @@
def main():
ansible_module = AnsibleModule(
argument_spec=dict(
ca_cert_files=dict(required=False, type='list', default=[]),
ca_cert_files=dict(required=False, type='list', elements='str',
default=[]),
),
supports_check_mode=False,
)
Expand Down

0 comments on commit 903e002

Please sign in to comment.