salt/runnertest.py
2015-01-28 18:43:40 -08:00

8 lines
207 B
Python

import salt.config
import salt.runner
opts = salt.config.master_config('/etc/salt/master')
runner = salt.runner.RunnerClient(opts)
print runner.cmd('test.stream', [])
print runner.cmd('jobs.list_jobs', [])