ansible/lib/ansible
Harm Geerts 9bd70045c9
Fix BaseFileCacheModule#keys to respect prefix (#72789)
* Fix BaseFileCacheModule#keys to respect prefix

Change:
- Previously BaseFileCacheModule#keys would return keys with the cache
  prefix. These keys are impossible to retrieve from the cache without
  removing the prefix or using the cache without a prefix.
  Now it removes the prefix from the key and only returns keys that
  share the same prefix as the cache.

Test Plan:
- New unit tests

* Add explicit BaseFileCacheModule#keys test

Test that files that do not match the cache prefix are ignored.
Test that the prefix is removed from the cache key.
2021-04-30 15:28:28 -04:00
..
_vendor Rename to ansible-core (#72594) 2020-11-13 15:42:10 -06:00
cli Add plugin config lists (#49627) 2021-04-29 15:01:05 -04:00
collections saner path dir management (#72648) 2020-12-14 19:30:13 -05:00
compat Updated bundled libraries (#70418) 2020-07-02 12:39:00 -05:00
config Fix world readable setting (#74324) 2021-04-26 12:49:59 -04:00
errors Correctly set path and fullpath for template vars (#73924) 2021-03-26 16:33:25 -04:00
executor Fix missing delegate display (#74370) 2021-04-28 13:24:38 -04:00
galaxy Abstract away libyaml details into yaml utils (#72607) 2021-04-21 16:47:03 -05:00
inventory inventory: misc typo fixes (#73695) 2021-02-23 10:42:20 -05:00
module_utils Remove deprecated common.removed module_util. 2021-04-29 16:07:56 -07:00
modules apt_key - correct error message about the failure to import a 'gpg' (#74476) 2021-04-30 12:06:38 -04:00
parsing Abstract away libyaml details into yaml utils (#72607) 2021-04-21 16:47:03 -05:00
playbook Only check if play.hosts is a template when the play hasn't been finalized (#73941) 2021-04-19 13:03:40 -04:00
plugins Fix BaseFileCacheModule#keys to respect prefix (#72789) 2021-04-30 15:28:28 -04:00
template Templar: remove _fail_on_{lookup,filter}_errors (#73785) 2021-04-28 17:49:16 +02:00
utils Add comments to keep collection loader in sync. 2021-04-28 17:45:42 -07:00
vars Only check if play.hosts is a template when the play hasn't been finalized (#73941) 2021-04-19 13:03:40 -04:00
__init__.py transparent downstream vendoring (#69850) 2020-06-15 16:22:25 -07:00
constants.py force version on deprecation (#74338) 2021-04-26 13:02:00 -04:00
context.py
keyword_desc.yml Document and warn when max_fail and free are used (#72616) 2020-11-17 10:11:15 -05:00
release.py prep for 2.12 version bump (#74126) 2021-04-05 16:56:53 -05:00