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 fecdcb3a16..01bb19074c 100644 --- a/plugins/lookup/onepassword.py +++ b/plugins/lookup/onepassword.py @@ -610,7 +610,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__():