Loop over all lowstates, not just the first o_O

This commit is contained in:
Seth House 2013-01-11 10:08:16 -07:00
parent b69bbd2654
commit 70588f2f69

View File

@ -484,7 +484,8 @@ class Minions(LowDataAdapter):
:status 401: authentication required
:status 406: requested :mailheader:`Content-Type` not available
'''
cherrypy.request.lowstate[0]['client'] = 'local_async'
for chunk in cherrypy.request.lowstate:
chunk['client'] = 'local_async'
job_data = next(self.exec_lowstate(), {})
raise cherrypy.HTTPRedirect('/jobs/{jid}'.format(**job_data), 302)