From e4e33e6824027958afd9f4f7180ee28c5c7b0ed2 Mon Sep 17 00:00:00 2001 From: "patchback[bot]" <45432694+patchback[bot]@users.noreply.github.com> Date: Tue, 28 Oct 2025 21:38:35 +0100 Subject: [PATCH] [PR #10965/ce0d06b3 backport][stable-11] onepassword: extend CLI class initialization with additional parameters (#11007) onepassword: extend CLI class initialization with additional parameters (#10965) * onepassword: extend CLI class initialization with additional parameters * add changelog fragment 10965-onepassword-bugfix.yml * Update changelogs/fragments/10965-onepassword-bugfix.yml --------- (cherry picked from commit ce0d06b30692b69b089bbb5d4192f97c15ed6e50) Co-authored-by: Matthew Co-authored-by: Felix Fontein --- changelogs/fragments/10965-onepassword-bugfix.yml | 2 ++ plugins/lookup/onepassword.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changelogs/fragments/10965-onepassword-bugfix.yml diff --git a/changelogs/fragments/10965-onepassword-bugfix.yml b/changelogs/fragments/10965-onepassword-bugfix.yml new file mode 100644 index 0000000000..670c02fdc2 --- /dev/null +++ b/changelogs/fragments/10965-onepassword-bugfix.yml @@ -0,0 +1,2 @@ +bugfixes: + - onepassword_doc and onepassword_ssh_key lookup plugins - ensure that all connection parameters are passed to CLI class (https://github.com/ansible-collections/community.general/pull/10965). \ No newline at end of file diff --git a/plugins/lookup/onepassword.py b/plugins/lookup/onepassword.py index f78616e6a0..34222b486d 100644 --- a/plugins/lookup/onepassword.py +++ b/plugins/lookup/onepassword.py @@ -609,7 +609,8 @@ class OnePass(object): def _get_cli_class(self, cli_class=None): if cli_class is not None: - return cli_class(self.subdomain, self.domain, self.username, self.secret_key, self.master_password, self.service_account_token) + return cli_class(self.subdomain, self.domain, self.username, self.secret_key, self.master_password, self.service_account_token, + self.account_id, self.connect_host, self.connect_token) version = OnePassCLIBase.get_current_version() for cls in OnePassCLIBase.__subclasses__():