From 6ff7797eaad2af7e79aab450ddd84356caf6a19a Mon Sep 17 00:00:00 2001 From: Chad Anderson Date: Tue, 10 Apr 2018 08:35:54 -0700 Subject: [PATCH] Move verify up so approle and other methods work as intended. --- lib/ansible/plugins/lookup/hashi_vault.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/ansible/plugins/lookup/hashi_vault.py b/lib/ansible/plugins/lookup/hashi_vault.py index 83ef009cd4..09113c84f3 100644 --- a/lib/ansible/plugins/lookup/hashi_vault.py +++ b/lib/ansible/plugins/lookup/hashi_vault.py @@ -131,6 +131,7 @@ class HashiVault: # to enable a new auth backend, simply add a new 'def auth_' method below. # 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': try: self.client = hvac.Client(url=self.url, verify=self.verify)