

def scsi_address_list():
    scsi_sg_path = '/proc/scsi/sg/'
    try:
        scsi_devices = open((scsi_sg_path + 'devices')).read().splitlines()
    except IOError:
        return []
    else:
        return [':'.join(dev.split()[:4]) for dev in scsi_devices]

dataset/ETHPy150Open openstack/bareon/bareon/utils/hardware.py scsi_address_list/original