From: Ricardo Marques Date: Wed, 9 Oct 2019 16:19:37 +0000 (+0100) Subject: mgr/dashboard: Remove unused RBD "configuration" endpoint X-Git-Tag: v15.1.0~1280^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=3656235b7a2fefed3c6ddae13aeff6496e27ae3b;p=ceph.git mgr/dashboard: Remove unused RBD "configuration" endpoint Signed-off-by: Ricardo Marques --- diff --git a/src/pybind/mgr/dashboard/controllers/rbd.py b/src/pybind/mgr/dashboard/controllers/rbd.py index 0f5cf3743e40..133a359b7139 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):