mirror of
https://github.com/valitydev/salt.git
synced 2024-11-07 17:09:03 +00:00
Merge pull request #39776 from cloudflare/proxy-schedule
WIP: Save _schedule.conf under <proxy ID> dir
This commit is contained in:
commit
965f474316
@ -443,6 +443,9 @@ class Schedule(object):
|
||||
config_dir,
|
||||
os.path.dirname(self.opts.get('default_include',
|
||||
salt.config.DEFAULT_MINION_OPTS['default_include'])))
|
||||
if salt.utils.is_proxy():
|
||||
# each proxy will have a separate _schedule.conf file
|
||||
minion_d_dir = os.path.join(minion_d_dir, self.opts['proxyid'])
|
||||
|
||||
if not os.path.isdir(minion_d_dir):
|
||||
os.makedirs(minion_d_dir)
|
||||
|
Loading…
Reference in New Issue
Block a user