mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 01:18:58 +00:00
we were not jsonify-ing
This commit is contained in:
parent
ee76aac6f4
commit
ca477006ce
@ -52,17 +52,15 @@ class JobsView(MethodView):
|
||||
'''
|
||||
Return information on a previously run job
|
||||
'''
|
||||
self.runners['jobs.lookup_jid'](jid)
|
||||
|
||||
# TODO: add cache headers based on the keep_jobs settings
|
||||
ret = self.local.cmd('*', ['grains.items', 'sys.list_functions'], [[], []])
|
||||
ret = self.runners['jobs.lookup_jid'](jid)
|
||||
return jsonify(ret)
|
||||
|
||||
def get_jobs_list(self):
|
||||
'''
|
||||
Return a previously run jobs
|
||||
'''
|
||||
return self.runners['jobs.list_jobs']()
|
||||
ret = self.runners['jobs.list_jobs']()
|
||||
return jsonify(ret)
|
||||
|
||||
def get(self, jid=None):
|
||||
'''
|
||||
|
Loading…
Reference in New Issue
Block a user