raise AnsibleError in hashi_vault lookup plugin when hvac module is not installed (#16859)
(cherry picked from commit 14901b65d9
)
This commit is contained in:
parent
df16e37ad7
commit
08ae111757
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.pop('url')
|
self.url = kwargs.pop('url')
|
||||||
self.secret = kwargs.pop('secret')
|
self.secret = kwargs.pop('secret')
|
||||||
|
|
Loading…
Reference in a new issue