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

pull/16962/head
victoru 8 years ago committed by Matt Davis
parent cbbc643317
commit 14901b65d9

@ -45,7 +45,7 @@ class HashiVault:
try: try:
import hvac import hvac
except ImportError: 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) self.url = kwargs.get('url', ANSIBLE_HASHI_VAULT_ADDR)

Loading…
Cancel
Save