Merge "Fix code to support new json format when calling osd crush tree"

This commit is contained in:
Zuul 2021-12-06 22:45:13 +00:00 committed by Gerrit Code Review
commit 4b4da368fd

View File

@ -118,7 +118,8 @@ class CephWrapper(CephClient):
and 'output' in _body:
node_map = {}
root_nodes = []
for node in _body['output']:
nodes = _body['output']['nodes']
for node in nodes:
node_map[node['id']] = node
if node['type'] == 'root':
root_nodes.append(node)