From 1b8393f85d228a37d306d997cea0276d52681612 Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Tue, 13 Oct 2020 16:38:55 +0800 Subject: [PATCH] mgr/dashboard: add an empty line to appease flake8 silence the warnings like ./controllers/mgr_modules.py:38:5: E301 expected 1 blank line, found 0' ./controllers/user.py:69:5: E301 expected 1 blank line, found 0 Signed-off-by: Kefu Chai --- src/pybind/mgr/dashboard/controllers/mgr_modules.py | 1 + src/pybind/mgr/dashboard/controllers/user.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/pybind/mgr/dashboard/controllers/mgr_modules.py b/src/pybind/mgr/dashboard/controllers/mgr_modules.py index 574be4666469f..b614612d0b72d 100644 --- a/src/pybind/mgr/dashboard/controllers/mgr_modules.py +++ b/src/pybind/mgr/dashboard/controllers/mgr_modules.py @@ -35,6 +35,7 @@ MGR_MODULE_SCHEMA = ([{ @ControllerDoc("Get details of MGR Module", "MgrModule") class MgrModules(RESTController): ignore_modules = ['selftest'] + @EndpointDoc("List Mgr modules", responses={200: MGR_MODULE_SCHEMA}) def list(self): diff --git a/src/pybind/mgr/dashboard/controllers/user.py b/src/pybind/mgr/dashboard/controllers/user.py index 4bdea87266ebe..5ee188032d879 100644 --- a/src/pybind/mgr/dashboard/controllers/user.py +++ b/src/pybind/mgr/dashboard/controllers/user.py @@ -66,6 +66,7 @@ class User(RESTController): raise DashboardException(msg='Role does not exist', code='role_does_not_exist', component='user') + @EndpointDoc("Get List Of Users", responses={200: USER_SCHEMA}) def list(self): -- 2.39.5