mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-03 17:23:09 +00:00
raise AnsibleError in hashi_vault lookup plugin when hvac module is not installed (#16859)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user