From c207b35fdcc19a8cc455e2de0b8ac50337a2e0a8 Mon Sep 17 00:00:00 2001 From: Michael Fritch Date: Tue, 3 Mar 2020 08:16:03 -0700 Subject: [PATCH] mgr/volumes: import VolumeException 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 (cherry picked from commit 5b9d5e2e43e3d2e2d391e9bce2328868a6159e53) --- src/pybind/mgr/volumes/fs/operations/index.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/volumes/fs/operations/index.py b/src/pybind/mgr/volumes/fs/operations/index.py index 3e11fd5870982..0e4296d7556ec 100644 --- a/src/pybind/mgr/volumes/fs/operations/index.py +++ b/src/pybind/mgr/volumes/fs/operations/index.py @@ -1,6 +1,7 @@ import errno import os +from ..exception import VolumeException from .template import GroupTemplate class Index(GroupTemplate): -- 2.39.5