]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/volumes: import VolumeException
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Mar 2020 15:16:03 +0000 (08:16 -0700)
committerMichael Fritch <mfritch@suse.com>
Thu, 5 Mar 2020 20:19:32 +0000 (13:19 -0700)
fixes mypy errors:

volumes/fs/operations/index.py: note: In member "track" of class "Index":
volumes/fs/operations/index.py:19: error: Name 'VolumeException' is not defined

volumes/fs/operations/index.py: note: In member "untrack" of class "Index":
volumes/fs/operations/index.py:22: error: Name 'VolumeException' is not defined

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
src/pybind/mgr/volumes/fs/operations/index.py

index 3e11fd58709827cd75a1d8cbeaa601e8e2b95a25..0e4296d7556ec91bacf373d02b6b723ab6748b8d 100644 (file)
@@ -1,6 +1,7 @@
 import errno
 import os
 
+from ..exception import VolumeException
 from .template import GroupTemplate
 
 class Index(GroupTemplate):