mirror of
https://github.com/valitydev/salt.git
synced 2024-11-09 01:36:48 +00:00
Allow type of module to be returned from raw_mod
This commit is contained in:
parent
d69771c72d
commit
6a2c2e1974
@ -149,7 +149,7 @@ def minion_mods(opts, context=None, whitelist=None, include_errors=False, initia
|
||||
return functions
|
||||
|
||||
|
||||
def raw_mod(opts, name, functions):
|
||||
def raw_mod(opts, name, functions, mod='modules'):
|
||||
'''
|
||||
Returns a single module loaded raw and bypassing the __virtual__ function
|
||||
|
||||
@ -162,7 +162,7 @@ def raw_mod(opts, name, functions):
|
||||
testmod = salt.loader.raw_mod(__opts__, 'test', None)
|
||||
testmod['test.ping']()
|
||||
'''
|
||||
load = _create_loader(opts, 'modules', 'rawmodule')
|
||||
load = _create_loader(opts, mod, 'rawmodule')
|
||||
return load.gen_module(name, functions)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user