]> git.apps.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)
committerBrad Hubbard <bhubbard@redhat.com>
Thu, 31 Oct 2019 00:38:17 +0000 (10:38 +1000)
commit54b87d24992e53e968b712f31ad0c0d7c65bef29
tree60bce9e3531c4159a32f7fb715264b108bae34b6
parentca6233676d368600b083b2d544eb87793d591627
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>
(cherry picked from commit 4f17cbc8651c4b96f006eeabd62373a6cd992865)
src/pybind/mgr/restful/common.py