Merge pull request #25927 from jacksontj/2015.5

Pass actual renderers to the Reactor's Compiler
This commit is contained in:
Mike Place 2015-07-31 14:00:17 -06:00
commit d1f3da548a
2 changed files with 4 additions and 5 deletions

View file

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

View file

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