Skip to content
Snippets Groups Projects
Commit 903e002e authored by Thomas Woerner's avatar Thomas Woerner
Browse files

ipasmartcard_server_validate_ca_certs: Fix doc sections and agument spec

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
parent 0dc49d07
No related branches found
No related tags found
No related merge requests found
...@@ -41,9 +41,11 @@ options: ...@@ -41,9 +41,11 @@ options:
description: description:
List of files containing CA certificates for the service certificate List of files containing CA certificates for the service certificate
files files
required: yes type: list
elements: str
required: no
author: author:
- Thomas Woerner - Thomas Woerner (@t-woerner)
''' '''
EXAMPLES = ''' EXAMPLES = '''
...@@ -63,7 +65,8 @@ except ImportError: ...@@ -63,7 +65,8 @@ except ImportError:
def main(): def main():
ansible_module = AnsibleModule( ansible_module = AnsibleModule(
argument_spec=dict( 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, supports_check_mode=False,
) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment