From ad2428c176cc0e8d3bf8c4bdf80284f26d07640d Mon Sep 17 00:00:00 2001 From: ihard <3078342+ihard@users.noreply.github.com> Date: Sat, 15 Feb 2020 15:46:44 +0300 Subject: [PATCH] fix hashi_vault lookup generates warning at LDAP authenticate #52131 (#67251) --- lib/ansible/plugins/lookup/hashi_vault.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/lookup/hashi_vault.py b/lib/ansible/plugins/lookup/hashi_vault.py index 0f54526dfe3..b90fe586ca3 100644 --- a/lib/ansible/plugins/lookup/hashi_vault.py +++ b/lib/ansible/plugins/lookup/hashi_vault.py @@ -247,7 +247,7 @@ class HashiVault: if mount_point is None: mount_point = 'ldap' - self.client.auth_ldap(username, password, mount_point=mount_point) + self.client.auth.ldap.login(username, password, mount_point=mount_point) def boolean_or_cacert(self, validate_certs, cacert): validate_certs = boolean(validate_certs, strict=False)