def get_list(self): try: result = get_partitions_names() except OperationFailed as e: wok_log.error("Fetching list of partitions failed") raise OperationFailed("GINPART00001E", {'err': e}) result = set(result) # removes duplicates in case of multipath return result
def get_list(self): dasd_part_list = [] try: partitions_list = get_partitions_names() for part in partitions_list: if re.search("dasd.*", part): dasd_part_list.append(part) except OperationFailed as e: raise OperationFailed("GINDASDPAR0008E", {'err': e.message}) return dasd_part_list
def get_list(self): dasd_part_list = [] try: partitions_list = get_partitions_names() for part in partitions_list: if re.search("dasd.*", part): dasd_part_list.append(part) except OperationFailed as e: wok_log.error("Fetching list of dasd partitions failed") raise OperationFailed("GINDASDPAR0008E", {'err': e}) return dasd_part_list
def get_list(self): result = disks.get_partitions_names() return result