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
patchback[bot] 3221b25393
fix passwordstore.py to be compatible with gopass. (#1589) (#1674)
* 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>
(cherry picked from commit 73b3ec09e5)

Co-authored-by: Paul Haerle <hello@phaer.org>
2021-01-25 12:59:22 +01:00
..
__init__.py Initial commit 2020-03-09 09:11:07 +00:00
cartesian.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
chef_databag.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
consul_kv.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
credstash.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
cyberarkpassword.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
dig.py Fix various sanity errors in plugins (#881) (#893) 2020-09-17 16:39:57 +00:00
dnstxt.py Fix plugins (names, constants, FQCNs in examples) (#722) 2020-08-18 08:29:44 +02:00
dsv.py Fix various sanity errors in plugins (#881) (#893) 2020-09-17 16:39:57 +00:00
etcd.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
etcd3.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
filetree.py Fix various sanity errors in plugins (#881) (#893) 2020-09-17 16:39:57 +00:00
flattened.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
gcp_storage_file.py Fix gcp_storage_file lookup plugin (#1284). 2020-11-13 22:06:46 +01:00
hashi_vault.py Fix hashi_vault lookup approle authentication (#1138) (#1315) 2020-11-16 16:40:54 +00:00
hiera.py Fix various sanity errors in plugins (#881) (#893) 2020-09-17 16:39:57 +00:00
keyring.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
lastpass.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
lmdb_kv.py Fix various sanity errors in plugins (#881) (#893) 2020-09-17 16:39:57 +00:00
manifold.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
nios.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
nios_next_ip.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
nios_next_network.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
onepassword.py onepassword: find the password field out of the fields list (#1610) (#1651) 2021-01-20 23:12:41 +01:00
onepassword_raw.py Fix various sanity errors in plugins (#881) (#893) 2020-09-17 16:39:57 +00:00
passwordstore.py fix passwordstore.py to be compatible with gopass. (#1589) (#1674) 2021-01-25 12:59:22 +01:00
redis.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
shelvefile.py Improve plugin sanity (#966) (#984) 2020-09-29 04:04:05 +00:00
tss.py Improve readability of example. (#1648) (#1649) 2021-01-19 08:05:57 +00:00