mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
iam_server_certificate_facts: Correct call to get_server_certs
This commit is contained in:
parent
885bdf3a4e
commit
4b2563ff4e
1 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ def get_server_certs(iam, name=None):
|
|||
>>> import boto3
|
||||
>>> iam = boto3.client('iam')
|
||||
>>> name = "server-cert-name"
|
||||
>>> results = get_server_cert(iam, name)
|
||||
>>> results = get_server_certs(iam, name)
|
||||
{
|
||||
"upload_date": "2015-04-25T00:36:40+00:00",
|
||||
"server_certificate_id": "ADWAJXWTZAXIPIMQHMJPO",
|
||||
|
@ -161,7 +161,7 @@ def main():
|
|||
module.fail_json(msg="Boto3 Client Error - " + str(e.msg))
|
||||
|
||||
cert_name = module.params.get('name')
|
||||
results = get_server_cert(iam, cert_name)
|
||||
results = get_server_certs(iam, cert_name)
|
||||
module.exit_json(results=results)
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue