From 4bd50288c68aa45ec27a147f863bfcec3ce1a48c Mon Sep 17 00:00:00 2001 From: Eyal Date: Sun, 26 Nov 2017 16:07:16 +0200 Subject: [PATCH] add default parameters to topology show Change-Id: Ie31c7b14c6a06963de53651cc7aa25f2f7db381d --- vitrage/api/controllers/v1/topology.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vitrage/api/controllers/v1/topology.py b/vitrage/api/controllers/v1/topology.py index c3be975ea..bbd8b3323 100644 --- a/vitrage/api/controllers/v1/topology.py +++ b/vitrage/api/controllers/v1/topology.py @@ -37,7 +37,8 @@ LOG = log.getLogger(__name__) class TopologyController(RootRestController): @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) if all_tenants: enforce('get topology:all_tenants', pecan.request.headers,