mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Merge branch 'returners-functions' into returner-success
This commit is contained in:
commit
f65a18ab81
@ -73,12 +73,14 @@ def raw_mod(opts, name, functions):
|
||||
return load.gen_module(name, functions)
|
||||
|
||||
|
||||
def returners(opts):
|
||||
def returners(opts, functions):
|
||||
'''
|
||||
Returns the returner modules
|
||||
'''
|
||||
load = _create_loader(opts, 'returners', 'returner')
|
||||
return load.filter_func('returner')
|
||||
pack = {'name': '__salt__',
|
||||
'value': functions}
|
||||
return load.filter_func('returner', pack)
|
||||
|
||||
|
||||
def pillars(opts, functions):
|
||||
|
@ -109,7 +109,7 @@ class SMinion(object):
|
||||
self.opts['environment'],
|
||||
).compile_pillar()
|
||||
self.functions = salt.loader.minion_mods(self.opts)
|
||||
self.returners = salt.loader.returners(self.opts)
|
||||
self.returners = salt.loader.returners(self.opts, self.functions)
|
||||
self.states = salt.loader.states(self.opts, self.functions)
|
||||
self.rend = salt.loader.render(self.opts, self.functions)
|
||||
self.matcher = Matcher(self.opts, self.functions)
|
||||
@ -161,7 +161,7 @@ class Minion(object):
|
||||
'''
|
||||
self.opts['grains'] = salt.loader.grains(self.opts)
|
||||
functions = salt.loader.minion_mods(self.opts)
|
||||
returners = salt.loader.returners(self.opts)
|
||||
returners = salt.loader.returners(self.opts, functions)
|
||||
return functions, returners
|
||||
|
||||
def _handle_payload(self, payload):
|
||||
|
Loading…
Reference in New Issue
Block a user