From c34da69f762ca88b0790726a1075145c37ed1a58 Mon Sep 17 00:00:00 2001 From: Kotresh HR Date: Tue, 17 Feb 2026 01:05:59 +0530 Subject: [PATCH] qa/test_mirroring: Fix flake8 errors Introduced-by: c1e827247bd20e8a1851bc2d7a9861c12d033ef0 Signed-off-by: Kotresh HR --- qa/tasks/cephfs/test_mirroring.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qa/tasks/cephfs/test_mirroring.py b/qa/tasks/cephfs/test_mirroring.py index 3708a344776..73597a1d674 100644 --- a/qa/tasks/cephfs/test_mirroring.py +++ b/qa/tasks/cephfs/test_mirroring.py @@ -43,8 +43,8 @@ def retry_assert(timeout=60, interval=1): attempt += 1 # Final failure if last_exc is not None and hasattr(last_exc, "res"): - log.error("\n--- Last peer status (res) ---") - log.error(last_exc.res) + log.error("\n--- Last peer status (res) ---") + log.error(last_exc.res) raise AssertionError( f"{func.__name__} did not succeed within {timeout}s " @@ -54,6 +54,7 @@ def retry_assert(timeout=60, interval=1): return wrapper return decorator + class TestMirroring(CephFSTestCase): MDSS_REQUIRED = 5 CLIENTS_REQUIRED = 2 @@ -329,7 +330,6 @@ class TestMirroring(CephFSTestCase): def check_peer_snap_in_progress(self, fs_name, fs_id, peer_spec, dir_name, snap_name, timeout=60, interval=1): peer_uuid = self.get_peer_uuid(peer_spec) - deadline = time.time() + timeout try: res = self.mirror_daemon_command(f'peer status for fs: {fs_name}', 'fs', 'mirror', 'peer', 'status', -- 2.47.3