]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind/mgr: use custom exception to handle authorization failures
authorJason Dillaman <dillaman@redhat.com>
Sun, 27 Oct 2019 19:56:34 +0000 (15:56 -0400)
committerJason Dillaman <dillaman@redhat.com>
Thu, 9 Jan 2020 18:59:36 +0000 (13:59 -0500)
commitb81b01b9b019bdacc274bdd39c34e336a578fdce
tree955be24d141dbfc3648aef857ddca634c5b4c7d8
parentead2d7c16280089322319f6a42780e4832724b2f
pybind/mgr: use custom exception to handle authorization failures

Python2 does not include the PermissionError exception so use a
custom exception to support both versions.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 7683f5f259bbeb6fcfc6a18c8e1a9551e068e847)
src/pybind/mgr/rbd_support/module.py