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/lookup
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
..
__init__.py Initial commit 2020-03-09 09:11:07 +00:00
cartesian.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
chef_databag.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
consul_kv.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
credstash.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
cyberarkpassword.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
dig.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
dnstxt.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
dsv.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
etcd.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
etcd3.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
filetree.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
flattened.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
hiera.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
keyring.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
lastpass.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
lmdb_kv.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
manifold.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
nios.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
nios_next_ip.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
nios_next_network.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
onepassword.py onepassword: find the password field out of the fields list (#1610) 2021-01-20 22:37:28 +01:00
onepassword_raw.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
passwordstore.py fix passwordstore.py to be compatible with gopass. (#1589) 2021-01-25 12:29:46 +01:00
redis.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
shelvefile.py <plugin_type>: -> name: (#1541) 2021-01-12 07:12:03 +01:00
tss.py Improve readability of example. (#1648) 2021-01-19 08:24:25 +01:00