1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

[PR #5942/5648e0e2 backport][stable-6] onepassword: ignore errors from "op account get" (#6037)

onepassword: ignore errors from "op account get" (#5942)

* ignore errors from "op account get"

* add changelog fragment

* Update changelogs/fragments/5942-onepassword-ignore-errors-from-op-account-get.yml

Co-authored-by: Felix Fontein <felix@fontein.de>

---------

Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 5648e0e2af)

Co-authored-by: Glenn Marcy <gmarcy@us.ibm.com>
This commit is contained in:
patchback[bot] 2023-02-22 16:43:55 +01:00 committed by GitHub
parent 3ecbadf694
commit 1fc53eea22
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -0,0 +1,2 @@
bugfixes:
- onepassword lookup plugin - Changed to ignore errors from "op account get" calls. Previously, errors would prevent auto-signin code from executing (https://github.com/ansible-collections/community.general/pull/5942).

View file

@ -488,7 +488,7 @@ class OnePassCLIv2(OnePassCLIBase):
account = "{subdomain}.{domain}".format(subdomain=self.subdomain, domain=self.domain) account = "{subdomain}.{domain}".format(subdomain=self.subdomain, domain=self.domain)
args.extend(["--account", account]) args.extend(["--account", account])
rc, out, err = self._run(args) rc, out, err = self._run(args, ignore_errors=True)
return not bool(rc) return not bool(rc)