Add debugging hooks

This commit is contained in:
Vincent S. Cojot 2017-12-06 11:08:16 -05:00
parent 684adff3ca
commit 7aa8bb4a27

View File

@ -668,10 +668,14 @@ if printarray:
if pcipath:
diskprefix = str('/dev/disk/by-path/pci-' + pcipath + '-scsi-0:')
dbgprint('Will look for DISKprefix : ' + diskprefix)
for j in range (8):
diskpath = diskprefix + str(j) + ':' + str(arrayinfo[7]) + ':0'
dbgprint('Looking for DISKpath : ' + diskpath)
if os.path.exists(diskpath):
arrayinfo[7] = os.path.realpath(diskpath)
dbgprint('Found DISK match: ' + diskpath + ' -> ' + arrayinfo[7])
break
else:
arrayinfo[7] = 'N/A'