]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
restful: Fix regression when traversing leaf nodes 26199/head
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 11:10:44 +0000 (12:10 +0100)
commit14cef712867cfdfd87bc27fe361c7801803ae6ac
tree88382512a59602723a47a5d740e793b2d0b9a9fa
parent2d3d616ddbdb748a7179d24b0f57355390e1c6ec
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>
(cherry picked from commit fb51bad963cc649fb12ca0ed8b738a2e819299b6)
src/pybind/mgr/restful/common.py