From 51121e54d02e663fa26599cbebb667bec666ce37 Mon Sep 17 00:00:00 2001 From: Benoit Bayszczak Date: Thu, 17 Sep 2020 10:19:12 +0200 Subject: [PATCH] [lookup_plugin/hashi_vault] add missing 'mount_point' param for approle (#897) * [lookup_plugin/hashi_vault] add missing 'mount_point' param for approle * [lookup_plugin/hashi_vault] add changelog fragment * Update changelogs/fragments/897-lookup-plugin-hashivault-add-approle-mount-point.yaml Co-authored-by: Felix Fontein Co-authored-by: Benoit Bayszczak Co-authored-by: Felix Fontein --- .../897-lookup-plugin-hashivault-add-approle-mount-point.yaml | 3 +++ plugins/lookup/hashi_vault.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/897-lookup-plugin-hashivault-add-approle-mount-point.yaml 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):