mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
change the state loading to reflect the move towards prepacking minion
functions
This commit is contained in:
parent
8d3dc67270
commit
6ea8f4d76c
@ -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):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user