mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
43a6bcf299
use: python setup.py test to build salt and run all 'unittest.TestCase's in tests/
14 lines
315 B
Python
14 lines
315 B
Python
from salt.cli.caller import Caller
|
|
from salt.config import minion_config
|
|
|
|
defaults = {
|
|
'module_dirs': '',
|
|
'log_level': 'warning',
|
|
}
|
|
config = minion_config('/etc/salt/minion')
|
|
|
|
def run_module(name, *args):
|
|
opts = defaults.copy()
|
|
opts.update(config, fun=name, arg=args)
|
|
return Caller(opts).call()
|