1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Remove check for HAS_BOTO3 since AnsibleAWSModule checks it (#33649)

This commit is contained in:
Sloane Hertel 2017-12-06 17:08:10 -05:00 committed by Jordan Borean
parent 065a2fe10d
commit 4071cd7a95

View file

@ -72,8 +72,7 @@ from ansible.module_utils.aws.core import AnsibleAWSModule
from ansible.module_utils.ec2 import (connect_to_aws,
boto3_conn,
ec2_argument_spec,
get_aws_connection_info,
HAS_BOTO3)
get_aws_connection_info)
try:
from botocore.exceptions import (BotoCoreError, ClientError)
except ImportError:
@ -119,9 +118,6 @@ def main():
supports_check_mode=True
)
if not HAS_BOTO3:
module.fail_json(msg='boto3 and botocore are required for this module')
region, ec2_url, aws_connect_params = get_aws_connection_info(
module, boto3=True)