Open mluzarreta opened 2 weeks ago
Files identified in the description:
lib/ansible/plugins/lookup
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
!component =plugins/lookup/passwordstore.py
Files identified in the description:
If these files are incorrect, please update the component name
section of the description or use the !component
bot command.
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 https://github.com/ansible-collections/community.general/pull/8952Issue 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
Expected Results
With
missing_subkey: empty
Actual Results
Subkey is created even when
create == false
Code of Conduct