mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Remove extra parameter in format_exc (#46251)
`traceback.format_exc()` does not take any argument, this fix remove such occurances. Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
1a51b08875
commit
bfc3ca1da1
3 changed files with 3 additions and 3 deletions
|
@ -459,7 +459,7 @@ def main():
|
|||
module.fail_json(msg='boto3 connection does not have tag_resource(), likely due to using an old version')
|
||||
boto3_sts = boto3_conn(module, conn_type='client', resource='sts', region=region, endpoint=ec2_url, **aws_connect_kwargs)
|
||||
except botocore.exceptions.NoCredentialsError as e:
|
||||
module.fail_json(msg='cannot connect to AWS', exception=traceback.format_exc(e))
|
||||
module.fail_json(msg='cannot connect to AWS', exception=traceback.format_exc())
|
||||
else:
|
||||
boto3_dynamodb = None
|
||||
boto3_sts = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue