fix topology mock

Change-Id: I56a6da490bc4e0830e2b5784cdfd6ae5e8a32dde
This commit is contained in:
Eyal 2016-02-21 10:54:56 +02:00
parent 59641cc593
commit 62ed87145f

View File

@ -102,8 +102,8 @@ class TopologyController(rest.RestController):
if graph_type == 'graph':
return graph
if graph_type == 'tree':
return as_tree(graph, root=0, reverse=True)
return as_tree(graph, root='node')
except Exception as e:
LOG.exception('failed to open file ', e)
LOG.exception('failed to open file %s', e)
abort(404, str(e))