]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
restful: Fix regression when traversing leaf nodes 26200/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:22 +0000 (12:10 +0100)
commite1b7aeb330e65500072dc7c5f0446512ccbdbc4d
treed2063fd224a500d6365a1683f73fbc4e89435d0e
parentc3295f4734fd4fb550b238974199f2c08b1b3d86
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