diff --git a/changelogs/fragments/897-lookup-plugin-hashivault-add-approle-mount-point.yaml b/changelogs/fragments/897-lookup-plugin-hashivault-add-approle-mount-point.yaml new file mode 100644 index 0000000000..cd2f449bd0 --- /dev/null +++ b/changelogs/fragments/897-lookup-plugin-hashivault-add-approle-mount-point.yaml @@ -0,0 +1,3 @@ +--- +bugfixes: + - hashi_vault - add missing ``mount_point`` parameter for approle auth (https://github.com/ansible-collections/community.general/pull/897). diff --git a/plugins/lookup/hashi_vault.py b/plugins/lookup/hashi_vault.py index d1f026c771..3cff19d939 100644 --- a/plugins/lookup/hashi_vault.py +++ b/plugins/lookup/hashi_vault.py @@ -406,7 +406,7 @@ class HashiVault: self.client.auth_ldap(**params) def auth_approle(self): - params = self.get_options('role_id', 'secret_id') + params = self.get_options('role_id', 'secret_id', 'mount_point') self.client.auth_approle(**params) def auth_aws_iam_login(self):