change the state loading to reflect the move towards prepacking minion

functions
This commit is contained in:
Thomas S Hatch 2011-05-08 22:03:30 -06:00
parent 8d3dc67270
commit 6ea8f4d76c

View File

@ -24,8 +24,8 @@ class State(object):
def __init__(self, opts):
self.opts = opts
self.functions = salt.loader.minion_mods(self.opts)
self.states = salt.loader.states(opts, self.functions)
self.rend = salt.loader.render(self.opts)
self.states = salt.loader.states(self.opts, self.functions)
self.rend = salt.loader.render(self.opts, self.functions)
def verify_data(self, data):
'''
@ -134,7 +134,7 @@ class State(object):
'''
if not os.path.isfile(template):
return {}
high = self.rend[self.opts['renderer']](template, self.functions, self,grains)
high = self.rend[self.opts['renderer']](template)
def call(self, data):
'''