Merge "Fix code to support new json format when calling osd crush tree"
This commit is contained in:
commit
4b4da368fd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user