]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mgr / volumes: improve error handling 28082/head
authorVenky Shankar <vshankar@redhat.com>
Sun, 19 May 2019 17:34:57 +0000 (13:34 -0400)
committerVenky Shankar <vshankar@redhat.com>
Fri, 14 Jun 2019 04:26:51 +0000 (00:26 -0400)
commit241c9cea7c1e489461c17fc43eb77ba28a4fd2c0
tree62eafceee41a72b054cafe03ddbf2978d646d2bd
parentaad7906fb712d3f15829a8b49f064b616475e72a
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>
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