fix topology mock
Change-Id: I56a6da490bc4e0830e2b5784cdfd6ae5e8a32dde
This commit is contained in:
parent
59641cc593
commit
62ed87145f
@ -102,8 +102,8 @@ class TopologyController(rest.RestController):
|
|||||||
if graph_type == 'graph':
|
if graph_type == 'graph':
|
||||||
return graph
|
return graph
|
||||||
if graph_type == 'tree':
|
if graph_type == 'tree':
|
||||||
return as_tree(graph, root=0, reverse=True)
|
return as_tree(graph, root='node')
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
LOG.exception('failed to open file ', e)
|
LOG.exception('failed to open file %s', e)
|
||||||
abort(404, str(e))
|
abort(404, str(e))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user