]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr/restful: fix TypeError occurring in _gather_osds() 39339/head
authorJerry Pu <jerrypu@qnap.com>
Thu, 3 Dec 2020 07:44:50 +0000 (15:44 +0800)
committerNathan Cutler <ncutler@suse.com>
Sun, 7 Feb 2021 12:46:58 +0000 (13:46 +0100)
commit513dca7134161206d96d969d4643aa0b4bbcbb99
tree55ef248e07307baac31fead5a4f33bae05f5ff18
parentf9c422aad058900772e144b1e747cee5fcb5727d
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>
(cherry picked from commit 7244343e8535739c782a517a50742c038abaec04)
src/pybind/mgr/restful/common.py