mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 06:12:51 +00:00
ec2_group_facts: Fail correctly when boto3 is not installed
Signed-off-by: Steve Kuznetsov <skuznets@redhat.com>
This commit is contained in:
committed by
Matt Clay
parent
cb76200c7d
commit
4a57cba86d
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user