From 3656235b7a2fefed3c6ddae13aeff6496e27ae3b Mon Sep 17 00:00:00 2001 From: Ricardo Marques Date: Wed, 9 Oct 2019 17:19:37 +0100 Subject: [PATCH] mgr/dashboard: Remove unused RBD "configuration" endpoint Signed-off-by: Ricardo Marques --- src/pybind/mgr/dashboard/controllers/rbd.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/pybind/mgr/dashboard/controllers/rbd.py b/src/pybind/mgr/dashboard/controllers/rbd.py index 0f5cf3743e4..133a359b713 100644 --- a/src/pybind/mgr/dashboard/controllers/rbd.py +++ b/src/pybind/mgr/dashboard/controllers/rbd.py @@ -12,7 +12,7 @@ import cherrypy import rbd from . import ApiController, RESTController, Task, UpdatePermission, \ - DeletePermission, CreatePermission, ReadPermission + DeletePermission, CreatePermission from .. import mgr from ..security import Scope from ..services.ceph_service import CephService @@ -350,11 +350,6 @@ class Rbd(RESTController): rbd_inst = rbd.RBD() return _rbd_call(pool_name, rbd_inst.trash_move, image_name, delay) - @RESTController.Resource() - @ReadPermission - def configuration(self, pool_name, image_name): - return RbdConfiguration(pool_name, image_name).list() - @ApiController('/block/image/{pool_name}/{image_name}/snap', Scope.RBD_IMAGE) class RbdSnapshot(RESTController): -- 2.39.5