]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/volumes: import VolumeException
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Mar 2020 15:16:03 +0000 (08:16 -0700)
committerRamana Raja <rraja@redhat.com>
Thu, 19 Mar 2020 12:57:32 +0000 (18:27 +0530)
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>
(cherry picked from commit 5b9d5e2e43e3d2e2d391e9bce2328868a6159e53)

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):