1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

raise AnsibleError in hashi_vault lookup plugin when hvac module is not installed (#16859)

This commit is contained in:
victoru 2016-08-04 12:06:12 -05:00 committed by Matt Davis
parent cbbc643317
commit 14901b65d9

View file

@ -45,7 +45,7 @@ class HashiVault:
try:
import hvac
except ImportError:
AnsibleError("Please pip install hvac to use this module")
raise AnsibleError("Please pip install hvac to use this module")
self.url = kwargs.get('url', ANSIBLE_HASHI_VAULT_ADDR)