]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/restful: fix TypeError occurring in _gather_osds() 38480/head
authorJerry Pu <jerrypu@qnap.com>
Thu, 3 Dec 2020 07:44:50 +0000 (15:44 +0800)
committerJerry Pu <yician1000@gmail.com>
Tue, 8 Dec 2020 10:20:30 +0000 (18:20 +0800)
commit7244343e8535739c782a517a50742c038abaec04
tree453532f8b147bd949be37b0b7f6c9b100d48bc0d
parent5435ed6236d44be6e47a9a2fcb4974f0ee839001
mgr/restful: fix TypeError occurring in _gather_osds()

In _gather_osds() processing `choose_firstn`, it tries to
traverse the keys of a `dict` (nodes_by_id[node_id]) but not
real nodes, thus mistakenly passing `str` to _gather_osds()
to do recursion.

Fixes: http://tracker.ceph.com/issues/48488
Signed-off-by: Jerry Pu <yician1000@gmail.com>
src/pybind/mgr/restful/common.py