]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/rbd_support: import GLOBAL_POOL_KEY before using it
authorKefu Chai <kchai@redhat.com>
Fri, 5 Feb 2021 10:26:45 +0000 (18:26 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 18 Feb 2021 14:46:51 +0000 (22:46 +0800)
otherwise task.py cannot reference this variable defined in another
module.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/pybind/mgr/rbd_support/task.py

index 6461e50d0d03a60a951395246a4f0eaf6536692f..c7fe0a0ca95434efef189e89576a7cded73d9f9e 100644 (file)
@@ -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"