From 2b6413558b30a3e71d9657b3a6f96be75d6b4cd3 Mon Sep 17 00:00:00 2001 From: Tom Cooper Date: Wed, 27 Mar 2019 00:11:09 -0400 Subject: [PATCH] hashi_vault: Use mount_point kwarg for ldap/userpass login (#54358) Fixes: #54249 --- lib/ansible/plugins/lookup/hashi_vault.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ansible/plugins/lookup/hashi_vault.py b/lib/ansible/plugins/lookup/hashi_vault.py index 1071b13d6a..fa94aff9c7 100644 --- a/lib/ansible/plugins/lookup/hashi_vault.py +++ b/lib/ansible/plugins/lookup/hashi_vault.py @@ -219,14 +219,14 @@ class HashiVault: if mount_point is None: mount_point = 'userpass' - self.client.auth_userpass(username, password, mount_point) + self.client.auth_userpass(username, password, mount_point=mount_point) def auth_ldap(self, **kwargs): username, password, mount_point = self.check_params(**kwargs) if mount_point is None: mount_point = 'ldap' - self.client.auth_ldap(username, password, mount_point) + self.client.auth_ldap(username, password, mount_point=mount_point) def boolean_or_cacert(self, validate_certs, cacert): validate_certs = boolean(validate_certs, strict=False)