mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-27 10:40:22 -07:00
ec2_vpc_dhcp_options_facts: fix exception handling, fixes build (#2819)
This commit is contained in:
parent
4af6033469
commit
4017be741a
1 changed files with 4 additions and 4 deletions
|
@ -151,7 +151,7 @@ def main():
|
|||
try:
|
||||
region, ec2_url, aws_connect_kwargs = get_aws_connection_info(module, boto3=True)
|
||||
connection = boto3_conn(module, conn_type='client', resource='ec2', region=region, endpoint=ec2_url, **aws_connect_kwargs)
|
||||
except botocore.exceptions.NoCredentialsError, e:
|
||||
except botocore.exceptions.NoCredentialsError as e:
|
||||
module.fail_json(msg="Can't authorize connection - "+str(e))
|
||||
|
||||
# call your function here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue