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

ignore /dev/md folder

parent aa96caf6
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,9 @@ def check_raid(dev):
if os.path.isfile('/proc/mdstat'):
all_ok = True
for r in glob.glob('/dev/md*'):
all_ok = min(check_raid(r), all_ok)
# ignore /dev/md folder
if os.path.isfile(r):
all_ok = min(check_raid(r), all_ok)
if all_ok:
print_green('Everything fine')
else:
......
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