The CommandsRequest.waiting is an array of arrays, not an array of
command results and so it cannot be represented that way. This commit
fixes that by outputting the array in json diretly.
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit
7005c6c0f68d82776c11cdfdd1a56e06f27d5e66)
self.finished
),
'waiting': map(
- lambda x: {
- 'command': x.command,
- 'outs': x.outs,
- 'outb': x.outb,
- },
+ lambda x: map(
+ lambda y: common.humanify_command(y),
+ x
+ ),
self.waiting
),
'failed': map(