I have following code executed on bpython. I have salt-master running in
open mode on the machine. I am using python API to get the jobs list. The
API is getting the jobs list in the jobList object below in json format,
but it is also printing the same info on the console. Please see the
highlighted prints below. How can i avoid this print on the console or in
my log.
import salt.config
import salt.client
import salt.runner
import salt.modules
master_opts = salt.config.client_config('/etc/salt/master')
runner = salt.runner.RunnerClient(master_opts)
jobList= runner.cmd('jobs.list_jobs',[])
*'20141002165003618812': Arguments: [] Function: state.highstate
StartTime: 2014, Oct 02 16:50:03.618812 Target:
pepper.admin.pod1.hq.kumo.local Target-type: glob User:
root'20141002165003662798': Arguments: - roles.nameserver Function:
state.sls StartTime: 2014, Oct 02 16:50:03.662798 Target: pepper.*
Target-type: glob User: root*
jobList
'pepper.admin.pod1.hq.kumo.local', 'User': 'root', 'StartTime': '2014, Oct
02 16:50:03.618812
', 'Target-type': 'glob', 'Arguments': []}, '20141002165003662798':
{'Function': 'state.sls', 'Target': 'pepper.*', 'User': 'root',
'StartTime': '2014, Oct 02 1
6:50:03.662798', 'Target-type': 'glob', 'Arguments': ['roles.nameserver']}}
>>>
--
You received this message because you are subscribed to the Google Groups "Salt-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to salt-users+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.