Skip to content
This repository has been archived by the owner on Oct 21, 2024. It is now read-only.

Commit

Permalink
lookup_plugins/bitwarden: ignore stderr
Browse files Browse the repository at this point in the history
Otherwise we get weird JSON parsing errors:
```
An unhandled exception occurred while running the lookup plugin 'bitwarden'.
Error was a <class 'json.decoder.JSONDecodeError'>, original message:
Extra data: line 1 column 843 (char 842). Extra data: line 1 column 843 (char 842)
```

Signed-off-by: Jakub Sokołowski <[email protected]>
  • Loading branch information
jakubgs committed May 7, 2024
1 parent c6f7141 commit feed6cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ansible/lookup_plugins/bitwarden.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def _run(self, args):
if self.session != "":
my_env["BW_SESSION"] = self.session
p = Popen([self.cli_path] + args, stdin=PIPE,
stdout=PIPE, stderr=STDOUT, env=my_env)
stdout=PIPE, stderr=PIPE, env=my_env)
out, _ = p.communicate()
out = out.decode()
rc = p.wait()
Expand Down

0 comments on commit feed6cf

Please sign in to comment.