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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions