mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #25927 from jacksontj/2015.5
Pass actual renderers to the Reactor's Compiler
This commit is contained in:
commit
d1f3da548a
2 changed files with 4 additions and 5 deletions
|
@ -245,9 +245,9 @@ class Compiler(object):
|
|||
'''
|
||||
Class used to compile and manage the High Data structure
|
||||
'''
|
||||
def __init__(self, opts):
|
||||
def __init__(self, opts, renderers):
|
||||
self.opts = opts
|
||||
self.rend = salt.loader.render(self.opts, {})
|
||||
self.rend = renderers
|
||||
|
||||
def render_template(self, template, **kwargs):
|
||||
'''
|
||||
|
|
|
@ -29,11 +29,10 @@ class Reactor(multiprocessing.Process, salt.state.Compiler):
|
|||
'''
|
||||
def __init__(self, opts):
|
||||
multiprocessing.Process.__init__(self)
|
||||
salt.state.Compiler.__init__(self, opts)
|
||||
|
||||
local_minion_opts = self.opts.copy()
|
||||
local_minion_opts = opts.copy()
|
||||
local_minion_opts['file_client'] = 'local'
|
||||
self.minion = salt.minion.MasterMinion(local_minion_opts)
|
||||
salt.state.Compiler.__init__(self, opts, self.minion.rend)
|
||||
|
||||
def render_reaction(self, glob_ref, tag, data):
|
||||
'''
|
||||
|
|
Loading…
Add table
Reference in a new issue