]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/cephfs: don't import entire module needlessly
authorRishabh Dave <ridave@redhat.com>
Sat, 24 Jun 2023 13:46:39 +0000 (19:16 +0530)
committerRishabh Dave <ridave@redhat.com>
Wed, 3 Apr 2024 17:21:44 +0000 (22:51 +0530)
Importing entire module ceph_manager.py is pointless since only
ceph_manager.CephManager is required in qa/tasks/cephfs/filesystem.py.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 437f2c75f5f5a98b45d8fceb3e209b7945cd6e71)

qa/tasks/cephfs/filesystem.py

index 8457345fc5d2c9547ad6f6dd4d9aa1f53aa190b9..902a3e5443922e500a2c0605852bd62159f01006 100644 (file)
@@ -18,7 +18,7 @@ from teuthology.nuke import clear_firewall
 from teuthology.parallel import parallel
 from teuthology import contextutil
 from tasks.ceph_manager import write_conf
-from tasks import ceph_manager
+from tasks.ceph_manager import CephManager
 
 
 log = logging.getLogger(__name__)
@@ -225,7 +225,8 @@ class CephCluster(object):
 
     def __init__(self, ctx) -> None:
         self._ctx = ctx
-        self.mon_manager = ceph_manager.CephManager(self.admin_remote, ctx=ctx, logger=log.getChild('ceph_manager'))
+        self.mon_manager = CephManager(self.admin_remote, ctx=ctx,
+                                       logger=log.getChild('ceph_manager'))
 
     def get_config(self, key, service_type=None):
         """