Repository navigation
salt-ssh: Fix race condition when caching files to build the thin tarball - #31521
Conversation
To test this PR
|
This commit extends the fileclient such that it is possible to override the base directory for file caching. The new "cachedir" param can be either a relative path or an absolute path. If it is relative, the path will be appended to __opts__['cachedir'], and if it is absolute then it will take the place of __opts__['cachedir'].
a2f68bf to
d9370a8
Compare
|
I've updated the previous comment with testing instructions, please refer to it instead of the email to get info on how to test. |
|
I'm planning on adding some fileclient integration tests today, so hold off on merging. |
e409ced to
0d352bb
Compare
|
Tests were added last night and are passing. |
salt-ssh: Fix race condition when caching files to build the thin tarball
This pull request extends the fileclient such that it is possible to override
the base directory for file caching. The new "cachedir" param can be either a
relative path or an absolute path. If it is relative, the path will be appended
to
__opts__['cachedir'], and if it is absolute then it will take the place of__opts__['cachedir'].Note that this functionality is only used by salt-ssh. The cp execution module
has not been updated to use it, because there doesn't appear to be a use case
for it.
Fixes #24753