mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 12:44:22 -07: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
|
>>> import boto3
|
||||||
>>> iam = boto3.client('iam')
|
>>> iam = boto3.client('iam')
|
||||||
>>> name = "server-cert-name"
|
>>> 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",
|
"upload_date": "2015-04-25T00:36:40+00:00",
|
||||||
"server_certificate_id": "ADWAJXWTZAXIPIMQHMJPO",
|
"server_certificate_id": "ADWAJXWTZAXIPIMQHMJPO",
|
||||||
|
@ -161,7 +161,7 @@ def main():
|
||||||
module.fail_json(msg="Boto3 Client Error - " + str(e.msg))
|
module.fail_json(msg="Boto3 Client Error - " + str(e.msg))
|
||||||
|
|
||||||
cert_name = module.params.get('name')
|
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)
|
module.exit_json(results=results)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue