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

fix test interpretation

parent 31ce85b6
No related branches found
No related tags found
No related merge requests found
......@@ -23,8 +23,7 @@ def print_green(string):
def check_raid(dev):
cmd = 'mdadm -D %s' % dev
status, output = subprocess.getstatusoutput(cmd)
print(output)
return status != 0
return status == 0
if os.path.isfile('/proc/mdstat'):
all_ok = True
......
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