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:
parent
cbbc643317
commit
14901b65d9
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue