From 4071cd7a95299d13ec0de78b6d0926ea4271c3e0 Mon Sep 17 00:00:00 2001 From: Sloane Hertel Date: Wed, 6 Dec 2017 17:08:10 -0500 Subject: [PATCH] Remove check for HAS_BOTO3 since AnsibleAWSModule checks it (#33649) --- .../modules/cloud/amazon/ec2_placement_group_facts.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_placement_group_facts.py b/lib/ansible/modules/cloud/amazon/ec2_placement_group_facts.py index b492e23d6c..00b4d40c0e 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_placement_group_facts.py +++ b/lib/ansible/modules/cloud/amazon/ec2_placement_group_facts.py @@ -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)