From c96fab4b6925108620aa750c0c038291485e530c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florent=20Thi=C3=A9ry?= <florent.thiery@ubicast.eu> Date: Mon, 13 Nov 2017 10:58:13 +0100 Subject: [PATCH] strip content in /sys/block/md1/md/sync_action, refs #21696 --- tester.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tester.py b/tester.py index 06f154d0..7128c63c 100755 --- a/tester.py +++ b/tester.py @@ -45,7 +45,7 @@ def raid_idle(): devs = glob.glob('/sys/block/md*/md/sync_action') for d in devs: with open(d, 'r') as f: - sync_state = f.read() + sync_state = f.read().strip() if sync_state != "idle": idle = False print("State in %s is %s" % (d, sync_state)) -- GitLab