mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
Add funciton packaing to render
This commit is contained in:
parent
db18cf672f
commit
8d3dc67270
@ -46,7 +46,7 @@ def states(opts, functions):
|
||||
'value': functions}
|
||||
return load.gen_functions(pack)
|
||||
|
||||
def render(opts):
|
||||
def render(opts, functions):
|
||||
'''
|
||||
Returns the render modules
|
||||
'''
|
||||
@ -54,7 +54,9 @@ def render(opts):
|
||||
os.path.join(distutils.sysconfig.get_python_lib(), 'salt/renderers'),
|
||||
] + opts['render_dirs']
|
||||
load = Loader(module_dirs, opts)
|
||||
return load.filter_func('render')
|
||||
pack = {'name': '__minion__',
|
||||
'value': functions}
|
||||
return load.filter_func('render', pack)
|
||||
|
||||
def grains():
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user