Skip to content

stderr capture prevents json decode #19

@mchwalisz

Description

@mchwalisz

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)"}

Activity

linked a pull request that will close this issue on Oct 16, 2021
b-reich

b-reich commented on Oct 25, 2021

@b-reich

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      Participants

      @b-reich@mchwalisz

      Issue actions

        stderr capture prevents json decode · Issue #19 · c0sco/ansible-modules-bitwarden