mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Set the right path for the config file
Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
parent
7ae96350ba
commit
b120534bdc
1 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,5 @@
|
|||
import os
|
||||
|
||||
import pytest
|
||||
|
||||
import salt.config
|
||||
|
@ -20,6 +22,7 @@ def minion_opts(tmp_path):
|
|||
dirpath.mkdir(parents=True)
|
||||
opts[name] = str(dirpath)
|
||||
opts["log_file"] = "logs/minion.log"
|
||||
opts["conf_file"] = os.path.join(opts["conf_dir"], "minion")
|
||||
return opts
|
||||
|
||||
|
||||
|
@ -37,6 +40,7 @@ def master_opts(tmp_path):
|
|||
dirpath.mkdir(parents=True)
|
||||
opts[name] = str(dirpath)
|
||||
opts["log_file"] = "logs/master.log"
|
||||
opts["conf_file"] = os.path.join(opts["conf_dir"], "master")
|
||||
return opts
|
||||
|
||||
|
||||
|
@ -55,4 +59,5 @@ def syndic_opts(tmp_path):
|
|||
dirpath.mkdir(parents=True)
|
||||
opts[name] = str(dirpath)
|
||||
opts["log_file"] = "logs/syndic.log"
|
||||
opts["conf_file"] = os.path.join(opts["conf_dir"], "syndic")
|
||||
return opts
|
||||
|
|
Loading…
Add table
Reference in a new issue