mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-08 22:33:25 +00:00
Move verify up so approle and other methods work as intended.
This commit is contained in:
committed by
Toshio Kuratomi
parent
d29f647f09
commit
6ff7797eaa
@@ -131,6 +131,7 @@ class HashiVault:
|
|||||||
# to enable a new auth backend, simply add a new 'def auth_<type>' method below.
|
# to enable a new auth backend, simply add a new 'def auth_<type>' method below.
|
||||||
#
|
#
|
||||||
self.auth_method = kwargs.get('auth_method')
|
self.auth_method = kwargs.get('auth_method')
|
||||||
|
self.verify = self.boolean_or_cacert(kwargs.get('validate_certs', True), kwargs.get('cacert', ''))
|
||||||
if self.auth_method and self.auth_method != 'token':
|
if self.auth_method and self.auth_method != 'token':
|
||||||
try:
|
try:
|
||||||
self.client = hvac.Client(url=self.url, verify=self.verify)
|
self.client = hvac.Client(url=self.url, verify=self.verify)
|
||||||
|
|||||||
Reference in New Issue
Block a user