ansible/changelogs
Yann Rouillard ac56230d5b Only delete key from redis in-memory cache if present (#35126)
Fixes #35120 : the redis cache plugin keeps key/value
entries in an in-memory cache to avoid hitting the
redis database each time.

The problem is that a cache entry is only set when
a value is get or set but it is always deleted when
trying to delete a value.

When the --flush-cache ansible-playbook option is used,
the redis cache plugin is first asked to remove every
entry corresponding to every hostname present in the inventory.
As no value as been set/get so far, it then tries to delete
an unexisting value from the cache and hence crashes with
a KeyError exception.

(cherry picked from commit ee3dfef016)
2018-10-09 12:09:07 -07:00
..
fragments Only delete key from redis in-memory cache if present (#35126) 2018-10-09 12:09:07 -07:00
.changes.yaml New release v2.7.0 2018-10-03 20:27:28 -07:00
CHANGELOG-v2.7.rst New release v2.7.0 2018-10-03 20:27:28 -07:00
CHANGELOG.rst fix RPM builds with placeholder CHANGELOG 2018-05-30 16:47:48 -07:00
config.yaml Implement new changelog generator. 2018-06-05 19:08:15 -07:00