示例#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
示例#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
示例#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:
            wok_log.error("Fetching list of dasd partitions failed")
            raise OperationFailed("GINDASDPAR0008E",
                                  {'err': e})

        return dasd_part_list
示例#4
0
文件: host.py 项目: madhawa/kimchi
 def get_list(self):
     result = disks.get_partitions_names()
     return result