Merge pull request #10897 from makinacorpus/return

salt.runner.jobs: optionnal toggle for output
This commit is contained in:
Thomas S Hatch 2014-03-03 11:03:10 -08:00
commit 7589f4bb26

View File

@ -53,7 +53,7 @@ def active():
return ret
def lookup_jid(jid, ext_source=None):
def lookup_jid(jid, ext_source=None, output=True):
'''
Return the printout from a previously executed job
@ -84,6 +84,7 @@ def lookup_jid(jid, ext_source=None):
for mid, data in client.get_full_returns(jid, [], 0).items():
ret[mid] = data.get('ret')
if output:
salt.output.display_output(
{mid: ret[mid]},
data.get('out', None),