mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Use minion_opts to set cachedir
This commit is contained in:
parent
aafb2fac46
commit
a90f62dc21
1 changed files with 2 additions and 6 deletions
|
@ -21,18 +21,14 @@ pytestmark = [
|
|||
|
||||
|
||||
@pytest.fixture
|
||||
def configure_loader_modules(tmp_path):
|
||||
cachedir = tmp_path / "__test_admx_policy_cache_dir"
|
||||
cachedir.mkdir(parents=True, exist_ok=True)
|
||||
def configure_loader_modules(minion_opts):
|
||||
return {
|
||||
win_lgpo: {
|
||||
"__opts__": minion_opts,
|
||||
"__salt__": {
|
||||
"file.file_exists": win_file.file_exists,
|
||||
"file.makedirs": win_file.makedirs_,
|
||||
},
|
||||
"__opts__": {
|
||||
"cachedir": str(cachedir),
|
||||
},
|
||||
},
|
||||
win_file: {
|
||||
"__utils__": {
|
||||
|
|
Loading…
Add table
Reference in a new issue