From 75a53dede4238aee87ef66982bf7e9b1ee2c82cc Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Tue, 23 Jan 2024 01:42:55 -0500 Subject: [PATCH] HVAC 1.0.0+ have all authentication methods as subclasses of client.auth Update login code to call the appropriate subclass for tls/cert auth --- ansible/module_utils/hashivault.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/module_utils/hashivault.py b/ansible/module_utils/hashivault.py index f501ec77..1f666bc9 100644 --- a/ansible/module_utils/hashivault.py +++ b/ansible/module_utils/hashivault.py @@ -134,7 +134,7 @@ def hashivault_auth(client, params): elif authtype == 'approle': client = AppRoleClient(client, role_id, secret_id, mount_point=login_mount_point) elif authtype == 'tls': - client.auth_tls() + client.auth.cert.login() elif authtype == 'aws': credentials = get_ec2_iam_credentials(params.get['aws_header'], role_id) client.auth_aws_iam(**credentials)