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:
parent
b06dfc4891
commit
03d1e63f57
1 changed files with 1 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue