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

add debug

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