mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Fix wrong number of arguments for format (#33542)
This fix adds wrong number of arguments for format in ec2.py module_util. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
committed by
Jordan Borean
parent
b06dfc4891
commit
03d1e63f57
@@ -105,7 +105,7 @@ def boto3_conn(module, conn_type=None, resource=None, region=None, endpoint=None
|
||||
try:
|
||||
return _boto3_conn(conn_type=conn_type, resource=resource, region=region, endpoint=endpoint, **params)
|
||||
except ValueError as e:
|
||||
module.fail_json(msg="Couldn't connect to AWS: " % to_native(e))
|
||||
module.fail_json(msg="Couldn't connect to AWS: %s" % to_native(e))
|
||||
except (botocore.exceptions.ProfileNotFound, botocore.exceptions.PartialCredentialsError) as e:
|
||||
module.fail_json(msg=to_native(e))
|
||||
except botocore.exceptions.NoRegionError as e:
|
||||
|
||||
Reference in New Issue
Block a user