Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stderr capture prevents json decode #19

Open
mchwalisz opened this issue Oct 16, 2021 · 1 comment · May be fixed by #20
Open

stderr capture prevents json decode #19

mchwalisz opened this issue Oct 16, 2021 · 1 comment · May be fixed by #20

Comments

@mchwalisz
Copy link

I'm using snap package of bw command. Apparently, because of that my output looks like:

bw lock
WARNING: cgroup v2 is not fully supported yet, proceeding with partial confinement
Your vault is locked.

where the warning message is printed to stdout. Warning is printed for every command. This in turn prevents lookup plugin to properly decode json strings, cause it merged stdout and stderr. Giving the following error:

FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'bitwarden'. Error was a <class 'ansible.errors.AnsibleError'>, original message: Error decoding Bitwarden status: Expecting value: line 1 column 1 (char 0)"}
@mchwalisz mchwalisz linked a pull request Oct 16, 2021 that will close this issue
@b-reich
Copy link

b-reich commented Oct 25, 2021

after this error bw cli forgets my client config...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants