From: Rishabh Dave Date: Fri, 28 Feb 2025 15:25:29 +0000 (+0530) Subject: qa/cephfs: avoid unnecessary importing in test_volumes.py X-Git-Tag: testing/wip-pdonnell-testing-20250311.211525-debug^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=b7d47bceaf59d2088d05c7edf04436dcb16145f3;p=ceph-ci.git qa/cephfs: avoid unnecessary importing in test_volumes.py Signed-off-by: Rishabh Dave --- diff --git a/qa/tasks/cephfs/test_volumes.py b/qa/tasks/cephfs/test_volumes.py index 9f7250570fb..2cfb13b99bc 100644 --- a/qa/tasks/cephfs/test_volumes.py +++ b/qa/tasks/cephfs/test_volumes.py @@ -15,7 +15,6 @@ from tasks.cephfs.cephfs_test_case import CephFSTestCase from tasks.cephfs.fuse_mount import FuseMount from teuthology.contextutil import safe_while from teuthology.exceptions import CommandFailedError -from teuthology import contextutil log = logging.getLogger(__name__) @@ -9156,7 +9155,7 @@ class TestMisc(TestVolumesHelper): clone_path = f'./volumes/_nogroup/{clone}' self.mount_a.run_shell(['sudo', 'rm', '-rf', clone_path], omit_sudo=False) - with contextutil.safe_while(sleep=5, tries=6) as proceed: + with safe_while(sleep=5, tries=6) as proceed: while proceed(): try: result = json.loads(self._fs_cmd("subvolume", "snapshot", "info", self.volname, subvolume, snapshot))