mirror of
https://github.com/freeipa/ansible-freeipa.git
synced 2026-03-26 21:33:05 +00:00
ipasmartcard_client_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 - `module` needs to match module name - `type: list` needs to be set for list parameters - `required` tags need to be fixed according to the `argument_spec` argument_spec - `elements="str"` needs to be added to all list of string parameters
This commit is contained in:
@@ -33,7 +33,7 @@ ANSIBLE_METADATA = {
|
||||
|
||||
DOCUMENTATION = '''
|
||||
---
|
||||
module: ipasmartcard_server_validate_ca_certs
|
||||
module: ipasmartcard_client_validate_ca_certs
|
||||
short_description: Validate CA certs
|
||||
description: Validate CA certs
|
||||
options:
|
||||
@@ -41,9 +41,11 @@ options:
|
||||
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 = '''
|
||||
@@ -63,7 +65,8 @@ except ImportError:
|
||||
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,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user