You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using passwordstore lookup to retrieve subkeys, if the subkey is missing, the lookup will create it even if create == false
This bug has been introduced with #8952
Summary
When using
passwordstore lookup
to retrieve subkeys, if the subkey is missing, the lookup will create it even ifcreate == false
This bug has been introduced with #8952
Issue Type
Bug Report
Component Name
passwordstore lookup
Ansible Version
Community.general Version
Configuration
OS / Environment
Archlinux
Steps to Reproduce
Initial state : a password named example/test already exists but NO subkey
We try to retrieve a non-existent subkey
ansible -m debug -i localhost, -a "msg={{ lookup('community.general.passwordstore', 'example/test', subkey='foo') }}" localhost
Expected Results
With
missing_subkey: empty
Actual Results
Subkey is created even when
create == false
Code of Conduct
The text was updated successfully, but these errors were encountered: