Example #1
0
    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
Example #2
0
    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
Example #3
0
    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
Example #4
0
    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
Example #5
0
 def get_list(self):
     result = disks.get_partitions_names()
     return result