def getDisks(self): disks = [] file = open('/tmp/discovered.disks', 'r') for line in file.readlines(): l = string.split(line) if len(l) > 0 and l[0] == 'disks:': for d in l[1:]: # # only include disks that have their # 'media present' -- this is one way # to filter out Dell Virtual Floppy # devices # if isys.mediaPresent(d): disks.append(d) file.close() return disks