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)