From 3e90898f667afa508137e7be885daa62fbdb86d9 Mon Sep 17 00:00:00 2001 From: Jing Sun Date: Mon, 6 Mar 2017 17:11:21 +0800 Subject: Jira ESCALATOR-41:get cluster list from installer Change-Id: Ie3cd22b2f8398ec893686445ac85da7e69ffffb7 Signed-off-by: Jing Sun --- api/escalator/api/v1/controller.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 api/escalator/api/v1/controller.py (limited to 'api/escalator/api/v1/controller.py') diff --git a/api/escalator/api/v1/controller.py b/api/escalator/api/v1/controller.py new file mode 100644 index 0000000..ad0b9d7 --- /dev/null +++ b/api/escalator/api/v1/controller.py @@ -0,0 +1,13 @@ +class BaseController(object): + + def get_cluster_meta_or_404(self, request, cluster_id): + """ + Grabs the cluster metadata for an cluster with a supplied + identifier or raises an HTTPNotFound (404) response + + :param request: The WSGI/Webob Request object + :param cluster_id: The opaque cluster identifier + + :raises HTTPNotFound if cluster does not exist + """ + pass -- cgit 1.2.3-korg