diff --git a/lib/ansible/modules/cloud/amazon/ec2_group_facts.py b/lib/ansible/modules/cloud/amazon/ec2_group_facts.py index ccb4aa64e30..522b811645c 100644 --- a/lib/ansible/modules/cloud/amazon/ec2_group_facts.py +++ b/lib/ansible/modules/cloud/amazon/ec2_group_facts.py @@ -102,7 +102,7 @@ try: from botocore.exceptions import ClientError HAS_BOTO3 = True except ImportError: - HAS_BOTO3 = Falsentry + HAS_BOTO3 = False import traceback