]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
restful: Fix jsonification
authorBoris Ranto <branto@redhat.com>
Mon, 30 Oct 2017 14:43:38 +0000 (15:43 +0100)
committerKefu Chai <kchai@redhat.com>
Tue, 8 May 2018 05:10:46 +0000 (13:10 +0800)
commit96f908bdb30da57abab7479b2ca3a0814c8a52ca
treea3a383dbdfd599b93e5ed7e684b9703d843124c1
parent48e36a6307c6b11b7e3bff20513f5ae6a9e22dee
restful: Fix jsonification

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)
src/pybind/mgr/restful/module.py