stevedore/releasenotes/notes/add-skip-caching-aa13be0299cc8b8c.yaml
Artem Goncharov 3a46e29141 Fix cache dir flooding when running from /tmp
Ansible invokes modules with executable placed under /tmp. This
causes stevedore caching to create bazillions of useless cache files.
When we can identify we run with executable under /tmp or if in the
target cache directory an empty file '.disable' is present - skip
writing cache.

Change-Id: Ic483ac68027505402ba32d7f612631e15a678d09
2020-09-14 16:06:14 +02:00

8 lines
320 B
YAML

---
features:
- |
Add possibility to skip caching endpoints to the filesystem when '.disable' file is present in the cache directory.
fixes:
- |
When python interpreter invokimg the module is located under /tmp (the case when i.e. Ansible module uses stevedore) do not try to write cache to the file system.