]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/volumes: add missing OpSmException import
authorMichael Fritch <mfritch@suse.com>
Tue, 3 Mar 2020 15:21:59 +0000 (08:21 -0700)
committerMichael Fritch <mfritch@suse.com>
Thu, 5 Mar 2020 20:19:34 +0000 (13:19 -0700)
fixes mypy error:

volumes/fs/operations/versions/__init__.py: note: In member "upgrade_legacy_subvolume" of class "SubvolumeLoader":
volumes/fs/operations/versions/__init__.py:56: error: Name 'OpSmException' is not defined

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

index 68c877b03b9f7c3687a9826037807663c03a5abd..25dd2d91a921a5c26a872f565db39589515a0329 100644 (file)
@@ -6,7 +6,7 @@ import cephfs
 
 from .subvolume_base import SubvolumeBase
 from ..op_sm import OpSm
-from ...exception import VolumeException, MetadataMgrException
+from ...exception import MetadataMgrException, OpSmException, VolumeException
 
 log = logging.getLogger(__name__)