Skip to content
Snippets Groups Projects
Commit c96fab4b authored by Florent Thiery's avatar Florent Thiery
Browse files

strip content in /sys/block/md1/md/sync_action, refs #21696

parent 76d5f146
No related branches found
No related tags found
No related merge requests found
......@@ -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))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment