community.general icon indicating copy to clipboard operation
community.general copied to clipboard

[WIP] add bitwarden lookup

Open rockaut opened this issue 2 years ago • 3 comments

SUMMARY

Adds a new plugin to lookup for bitwarden objects. Similar to the onepassword or lastpass lookups.

ISSUE TYPE
  • New Module Pull Request
COMPONENT NAME

community.general.bitwarden

ADDITIONAL INFORMATION
- name: Retrieve whole item for CASTLE
  ansible.builtin.debug:
    var: lookup('community.general.bitwarden', 'CASTLE')

https://bitwarden.com/help/cli/ https://github.com/bitwarden/cli/

rockaut avatar Apr 02 '22 13:04 rockaut

The test botmeta failed with 2 errors:

.github/BOTMETA.yml:0:0: Author rockaut not mentioned as active or inactive maintainer for plugins/lookup/bitwarden.py (mentioned are: )
.github/BOTMETA.yml:0:0: No (active or inactive) maintainer mentioned for plugins/lookup/bitwarden.py

The test ansible-test sanity --test pep8 [explain] failed with 12 errors:

plugins/lookup/bitwarden.py:68:1: E302: expected 2 blank lines, found 1
plugins/lookup/bitwarden.py:69:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:71:3: E114: indentation is not a multiple of 4 (comment)
plugins/lookup/bitwarden.py:72:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:73:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:74:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:76:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:77:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:95:11: E121: continuation line under-indented for hanging indent
plugins/lookup/bitwarden.py:124:11: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:125:15: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:126:15: E111: indentation is not a multiple of 4

The test ansible-test sanity --test pep8 [explain] failed with 12 errors:

plugins/lookup/bitwarden.py:68:1: E302: expected 2 blank lines, found 1
plugins/lookup/bitwarden.py:69:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:71:3: E114: indentation is not a multiple of four (comment)
plugins/lookup/bitwarden.py:72:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:73:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:74:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:76:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:77:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:95:11: E121: continuation line under-indented for hanging indent
plugins/lookup/bitwarden.py:124:11: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:125:15: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:126:15: E111: indentation is not a multiple of four

The test ansible-test sanity --test pep8 [explain] failed with 12 errors:

plugins/lookup/bitwarden.py:68:1: E302: expected 2 blank lines, found 1
plugins/lookup/bitwarden.py:69:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:71:3: E114: indentation is not a multiple of 4 (comment)
plugins/lookup/bitwarden.py:72:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:73:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:74:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:76:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:77:3: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:95:11: E121: continuation line under-indented for hanging indent
plugins/lookup/bitwarden.py:124:11: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:125:15: E111: indentation is not a multiple of 4
plugins/lookup/bitwarden.py:126:15: E111: indentation is not a multiple of 4

The test ansible-test sanity --test pep8 [explain] failed with 12 errors:

plugins/lookup/bitwarden.py:68:1: E302: expected 2 blank lines, found 1
plugins/lookup/bitwarden.py:69:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:71:3: E114: indentation is not a multiple of four (comment)
plugins/lookup/bitwarden.py:72:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:73:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:74:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:76:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:77:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:95:11: E121: continuation line under-indented for hanging indent
plugins/lookup/bitwarden.py:124:11: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:125:15: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:126:15: E111: indentation is not a multiple of four

The test ansible-test sanity --test pep8 [explain] failed with 12 errors:

plugins/lookup/bitwarden.py:68:1: E302: expected 2 blank lines, found 1
plugins/lookup/bitwarden.py:69:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:71:3: E114: indentation is not a multiple of four (comment)
plugins/lookup/bitwarden.py:72:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:73:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:74:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:76:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:77:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:95:11: E121: continuation line under-indented for hanging indent
plugins/lookup/bitwarden.py:124:11: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:125:15: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:126:15: E111: indentation is not a multiple of four

The test ansible-test sanity --test pep8 [explain] failed with 12 errors:

plugins/lookup/bitwarden.py:68:1: E302: expected 2 blank lines, found 1
plugins/lookup/bitwarden.py:69:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:71:3: E114: indentation is not a multiple of four (comment)
plugins/lookup/bitwarden.py:72:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:73:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:74:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:76:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:77:3: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:95:11: E121: continuation line under-indented for hanging indent
plugins/lookup/bitwarden.py:124:11: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:125:15: E111: indentation is not a multiple of four
plugins/lookup/bitwarden.py:126:15: E111: indentation is not a multiple of four

click here for bot help

ansibullbot avatar Apr 02 '22 13:04 ansibullbot

cc @lungj click here for bot help

ansibullbot avatar Aug 05 '22 18:08 ansibullbot

@rockaut Maybe #5012 does what you want :)

lungj avatar Aug 05 '22 19:08 lungj

Any update on this one?

needs_info

felixfontein avatar Oct 25 '22 05:10 felixfontein

Crap... I totally forgot about this. I will close it and redo it. Sorry for the inconvenience.

rockaut avatar Oct 25 '22 08:10 rockaut

Closing as I forgot about it. I hope I can redo it for new versions.

rockaut avatar Oct 25 '22 08:10 rockaut

Docs Build 📝

This PR is closed and any previously published docsite has been unpublished.

github-actions[bot] avatar Oct 25 '22 08:10 github-actions[bot]

No problem, such things happen :)

felixfontein avatar Oct 25 '22 10:10 felixfontein