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

print status only if in bad shape

parent 7f54e292
No related branches found
No related tags found
No related merge requests found
......@@ -33,6 +33,9 @@ if os.path.isfile('/proc/mdstat'):
print_green('Everything fine')
else:
print_red('Some array is in bad shape')
with open('/proc/mdstat', 'r') as f:
d = f.read()
print(d)
sys.exit(not all_ok)
else:
print('No software RAID array found, untestable')
......
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