aacraid-status: fails if not controller detected

This commit is contained in:
Adam Cecile 2016-12-14 20:37:41 +01:00
parent c09a7cea67
commit cbbafa309d
1 changed files with 3 additions and 0 deletions

View File

@ -225,6 +225,9 @@ else:
cmd = '"%s" GETVERSION' % arcconfpath
output = getOutput(cmd)
controllernumber = returnControllerNumber(output)
if not controllernumber:
print '"arcconf" returned no controller, are you sure to have an Adaptec adapter?'
sys.exit(3)
# List controllers
if printcontroller: