mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Pass syndic_id to save_minions()
This commit is contained in:
parent
cf94c2597a
commit
65e5a3c53e
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ def store_job(opts, load, event=None, mminion=None):
|
|||
raise KeyError(emsg)
|
||||
|
||||
|
||||
def store_minions(opts, jid, minions, mminion=None):
|
||||
def store_minions(opts, jid, minions, mminion=None, syndic_id=None):
|
||||
'''
|
||||
Store additional minions matched on lower-level masters using the configured
|
||||
master_job_cache
|
||||
|
@ -111,7 +111,7 @@ def store_minions(opts, jid, minions, mminion=None):
|
|||
minions_fstr = '{0}.save_minions'.format(job_cache)
|
||||
|
||||
try:
|
||||
mminion.returners[minions_fstr](jid, minions)
|
||||
mminion.returners[minions_fstr](jid, minions, syndic_id=syndic_id)
|
||||
except KeyError:
|
||||
raise KeyError(
|
||||
'Returner \'{0}\' does not support function save_minions'.format(
|
||||
|
|
Loading…
Add table
Reference in a new issue