fix hashi_vault lookup generates warning at LDAP authenticate #52131 (#67251)

This commit is contained in:
ihard 2020-02-15 15:46:44 +03:00 committed by GitHub
parent c36f03b3e1
commit ad2428c176
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)