From: Kefu Chai Date: Fri, 5 Feb 2021 10:26:45 +0000 (+0800) Subject: mgr/rbd_support: import GLOBAL_POOL_KEY before using it X-Git-Tag: v17.1.0~2831^2~9 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=524a130d4142c00515dd3a3f23cc5478ed10dd77;p=ceph.git mgr/rbd_support: import GLOBAL_POOL_KEY before using it otherwise task.py cannot reference this variable defined in another module. Signed-off-by: Kefu Chai --- diff --git a/src/pybind/mgr/rbd_support/task.py b/src/pybind/mgr/rbd_support/task.py index 6461e50d0d03..c7fe0a0ca954 100644 --- a/src/pybind/mgr/rbd_support/task.py +++ b/src/pybind/mgr/rbd_support/task.py @@ -12,7 +12,7 @@ from functools import partial, wraps from threading import Condition, Lock, Thread from .common import (authorize_request, extract_pool_key, get_rbd_pools, - is_authorized) + is_authorized, GLOBAL_POOL_KEY) RBD_TASK_OID = "rbd_task"