From 4a57cba86d7de89aaae03e78ee5d4d87be79518e Mon Sep 17 00:00:00 2001 From: Steve Kuznetsov Date: Wed, 7 Dec 2016 09:01:51 -0500 Subject: [PATCH] ec2_group_facts: Fail correctly when boto3 is not installed Signed-off-by: Steve Kuznetsov --- lib/ansible/modules/cloud/amazon/ec2_group_facts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/cloud/amazon/ec2_group_facts.py b/lib/ansible/modules/cloud/amazon/ec2_group_facts.py index ccb4aa64e3..522b811645 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