mirror of
https://github.com/eLvErDe/hwraid.git
synced 2025-07-25 23:04:44 +02:00
aacraid-status: fails if not controller detected
This commit is contained in:
parent
c09a7cea67
commit
cbbafa309d
@ -225,6 +225,9 @@ else:
|
|||||||
cmd = '"%s" GETVERSION' % arcconfpath
|
cmd = '"%s" GETVERSION' % arcconfpath
|
||||||
output = getOutput(cmd)
|
output = getOutput(cmd)
|
||||||
controllernumber = returnControllerNumber(output)
|
controllernumber = returnControllerNumber(output)
|
||||||
|
if not controllernumber:
|
||||||
|
print '"arcconf" returned no controller, are you sure to have an Adaptec adapter?'
|
||||||
|
sys.exit(3)
|
||||||
|
|
||||||
# List controllers
|
# List controllers
|
||||||
if printcontroller:
|
if printcontroller:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user