]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
restful: Fix regression when traversing leaf nodes
authorBoris Ranto <branto@redhat.com>
Thu, 14 Feb 2019 09:35:56 +0000 (10:35 +0100)
committerBoris Ranto <branto@redhat.com>
Thu, 14 Feb 2019 09:36:01 +0000 (10:36 +0100)
commitfb51bad963cc649fb12ca0ed8b738a2e819299b6
tree4f497b4fb013c628423b6f75edadd00ca15fa492
parent24fcffb94ccda5cb11eeb74315c78e053fbb1c66
restful: Fix regression when traversing leaf nodes

The commit 23b6c90 introduced a regression when traversing leaf nodes.
The issue is that it traverses the keys of a `dict` returned by
`nodes_by_id`, not the actual `items` of the node. That resulted in an
500 error because it tried to treat `str` as a `dict` and failed.

Signed-off-by: Boris Ranto <branto@redhat.com>
src/pybind/mgr/restful/common.py