From a335d1cc56990be1a3220198ae759aef0e4feb23 Mon Sep 17 00:00:00 2001 From: Abhijeet Kasurde Date: Mon, 10 Aug 2020 10:22:24 +0530 Subject: [PATCH] dsv: Use correct dict usage (#743) Signed-off-by: Abhijeet Kasurde (cherry picked from commit 9e039cc4a0fa86a3f6c58093a1cba2f76f739484) --- changelogs/fragments/dsv_fix.yml | 2 ++ plugins/lookup/dsv.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/dsv_fix.yml diff --git a/changelogs/fragments/dsv_fix.yml b/changelogs/fragments/dsv_fix.yml new file mode 100644 index 0000000000..fedc90ba5b --- /dev/null +++ b/changelogs/fragments/dsv_fix.yml @@ -0,0 +1,2 @@ +bugfixes: +- dsv lookup - use correct dict usage (https://github.com/ansible-collections/community.general/pull/743). diff --git a/plugins/lookup/dsv.py b/plugins/lookup/dsv.py index b56e8ec7cc..d0faf8b18e 100644 --- a/plugins/lookup/dsv.py +++ b/plugins/lookup/dsv.py @@ -112,7 +112,7 @@ class LookupModule(LookupBase): self.set_options(var_options=variables, direct=kwargs) vault = LookupModule.Client( - **{ + { "tenant": self.get_option("tenant"), "client_id": self.get_option("client_id"), "client_secret": self.get_option("client_secret"),