1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/plugins
Paul Haerle 73b3ec09e5
fix passwordstore.py to be compatible with gopass. (#1589)
* fix passwordstore.py to be compatible with gopass.

...even when used with create=true.

The same output snippet matches for both, `pass` and `gopass`, but while `pass` returns `1` on a non-existant password, `gopass` returns `10`, or `11`, depending on whether a similar named password was stored.

So I'd propose to change `e.returncode == 1` to `e.returncode != 0` to cover both cases here.

What do you think?

* Update passwordstore.py, fix typo

* Add changelog fragment.

* Update changelogs/fragments/1589-passwordstore-fix-passwordstore.py-to-be-compatible-with-gopass.yaml

Co-authored-by: Felix Fontein <felix@fontein.de>

* Update changelogs/fragments/1589-passwordstore-fix-passwordstore.py-to-be-compatible-with-gopass.yaml

Co-authored-by: Felix Fontein <felix@fontein.de>

Co-authored-by: Felix Fontein <felix@fontein.de>
2021-01-25 12:29:46 +01:00
..
action Bump version to 2.0.0 (#1369) 2020-11-26 14:26:36 +01:00
become <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
cache <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
callback Update ansible-logstash-callback (#641) 2021-01-24 21:00:55 +01:00
connection <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
doc_fragments Tidy up validate-modules ignores for modules: net_tools/nios (#1598) 2021-01-11 22:14:46 +01:00
filter Added filter plugin lists_mergeby. Fix #249 (#604) 2020-12-04 09:32:42 -05:00
inventory Add Environment Passthrough to Proxmox Inventory Module (#1645) 2021-01-20 22:45:04 +01:00
lookup fix passwordstore.py to be compatible with gopass. (#1589) 2021-01-25 12:29:46 +01:00
module_utils Modhelper improvements (#1480) 2021-01-15 21:29:23 +01:00
modules Allow gitlab_runner to function for non-admin users (#1491) 2021-01-24 21:02:44 +01:00