]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr / volumes: improve error handling 28595/head
authorVenky Shankar <vshankar@redhat.com>
Sun, 19 May 2019 17:34:57 +0000 (13:34 -0400)
committerRamana Raja <rraja@redhat.com>
Mon, 17 Jun 2019 12:21:11 +0000 (17:51 +0530)
commit4ae678e030db8a052a64a302d92313d95783fed7
tree46f5a094b04b9a09c1e35eb42aa68943cc5460f4
parent2103230cb6623e7e918bdda2421b165cdfd33b71
mgr / volumes: improve error handling

This cleans up lots of return-fu statements and make the source
look much more pythonic. Functions should raise an instance of
VolumeException() class wherever necessary (error handling).

Fixes: http://tracker.ceph.com/issues/39969
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 241c9cea7c1e489461c17fc43eb77ba28a4fd2c0)
src/pybind/mgr/volumes/fs/exception.py [new file with mode: 0644]
src/pybind/mgr/volumes/fs/subvolspec.py
src/pybind/mgr/volumes/fs/subvolume.py
src/pybind/mgr/volumes/fs/volume.py