]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
restful: Query nodes_by_id for items
authorBoris Ranto <branto@redhat.com>
Thu, 24 Oct 2019 14:54:05 +0000 (16:54 +0200)
committerBoris Ranto <branto@redhat.com>
Fri, 25 Oct 2019 13:51:15 +0000 (15:51 +0200)
commit4f17cbc8651c4b96f006eeabd62373a6cd992865
tree02044a58b0a2461117abb7ad001fd0765b28b46d
parent190b0bf433b08682f22aa2914a808dfd8976cf25
restful: Query nodes_by_id for items

The node dict that is passed to the _gather_leaf_ids function from the
_gather_osds function does not have 'items' in it. We also can't use
buckets at this point since those only exist for leaf nodes, not all
nodes.

We need to query the nodes_by_id dict to get 'items' for a node inside
the _gather_leaf_ids function instead.

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