Save _schedule.conf under <minion ID> dir

So each proxy can have its own scheduled functions, independently.
This commit is contained in:
Mircea Ulinic 2017-03-02 04:12:40 +00:00
parent 793979cbe6
commit 35b8b8fd64

View file

@ -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)