From: Kefu Chai Date: Tue, 13 Oct 2020 08:38:55 +0000 (+0800) Subject: mgr/dashboard: add an empty line to appease flake8 X-Git-Tag: v17.0.0~881^2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=1b8393f85d228a37d306d997cea0276d52681612;p=ceph-ci.git 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 --- diff --git a/src/pybind/mgr/dashboard/controllers/mgr_modules.py b/src/pybind/mgr/dashboard/controllers/mgr_modules.py index 574be466646..b614612d0b7 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 4bdea87266e..5ee188032d8 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):