You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/lib/ansible/plugins/lookup
Gaudenz Steinlin c33a782a9c
Fix password lookup rewrites file when using encrypt (#79431)
* Remove unused mock from test_password_already_created_encrypt

The _get_paths mock is never used in the
test_password_already_created_encrypt test case.

* Add test to assert the password file is not rewritten

If the password file already contains the salt and the hasing algorithm
does not use the ident parameter, the password lookup should not write
to the password file.

* Fix "changed" if using "encrypt" in password lookup

When using the "encrypt" parameter to the password lookup without the
ident parameter, the password file was always marked as "changed". This
caused the file to be rewritten with the same content. This is fixed by
only marking the file as changed, if an "ident" value needs to be added
to the file.

Fixes #79430.

Add changelog entry
2 years ago
..
__init__.py Misc typo fixes in plugins directory (#76566) 2 years ago
config.py docs: add fqcn to module examples (#73546) 2 years ago
csvfile.py Module/plugin docs: (#78380) 2 years ago
dict.py Remove collections compat from controller code. 2 years ago
env.py docs: add fqcn to module examples (#73546) 2 years ago
file.py file lookup now works with general lookup error framework (#79339) 2 years ago
fileglob.py Update fileglob.py (#78887) 2 years ago
first_found.py validate-modules for plugins: do some more schema validations so that some issues that are currently reported for modules are also reported for plugins (#77268) 2 years ago
indexed_items.py docs: add fqcn to module examples (#73546) 2 years ago
ini.py Remove collections compat from controller code. 2 years ago
inventory_hostnames.py docs: add fqcn to module examples (#73546) 2 years ago
items.py docs: add fqcn to module examples (#73546) 2 years ago
lines.py docs: add fqcn to module examples (#73546) 2 years ago
list.py Remove collections compat from controller code. 2 years ago
nested.py listify_lookup_plugin_terms deprecate dataloader (#78244) 2 years ago
password.py Fix password lookup rewrites file when using encrypt (#79431) 2 years ago
pipe.py plugins/lookup/pipe: docs typo fixes (#79222) 2 years ago
random_choice.py docs: add fqcn to module examples (#73546) 2 years ago
sequence.py docs: add fqcn to module examples (#73546) 2 years ago
subelements.py listify_lookup_plugin_terms deprecate dataloader (#78244) 2 years ago
template.py template module/lookup: fix convert_data for macros (#78259) 2 years ago
together.py listify_lookup_plugin_terms deprecate dataloader (#78244) 2 years ago
unvault.py doc: filter: unvault: fix example (#78161) 2 years ago
url.py uri: added use_netrc argument to allow ignoring netrc (#74397) (#78569) 2 years ago
varnames.py docs: add fqcn to module examples (#73546) 2 years ago
vars.py docs: add fqcn to module examples (#73546) 2 years ago