Merge "add default parameters to topology show"

This commit is contained in:
Zuul 2017-11-27 02:48:34 +00:00 committed by Gerrit Code Review
commit 44ac05e398

View File

@ -37,7 +37,8 @@ LOG = log.getLogger(__name__)
class TopologyController(RootRestController): class TopologyController(RootRestController):
@pecan.expose('json') @pecan.expose('json')
def post(self, depth, graph_type, query, root, all_tenants=False): def post(self, depth=None, graph_type='graph', query=None, root=None,
all_tenants=False):
all_tenants = bool_from_string(all_tenants) all_tenants = bool_from_string(all_tenants)
if all_tenants: if all_tenants:
enforce('get topology:all_tenants', pecan.request.headers, enforce('get topology:all_tenants', pecan.request.headers,