ec2_group_facts: Fail correctly when boto3 is not installed

Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
This commit is contained in:
Steve Kuznetsov 2016-12-07 09:01:51 -05:00 committed by Matt Clay
parent cb76200c7d
commit 4a57cba86d

View file

@ -102,7 +102,7 @@ try:
from botocore.exceptions import ClientError from botocore.exceptions import ClientError
HAS_BOTO3 = True HAS_BOTO3 = True
except ImportError: except ImportError:
HAS_BOTO3 = Falsentry HAS_BOTO3 = False
import traceback import traceback