Exemple #1
0
    def partition_lookup(self, name):
        if name not in disks.get_partitions_names():
            raise NotFoundError("KCHPART0001E", {'name': name})

        return disks.get_partition_details(name)
Exemple #2
0
 def partitions_get_list(self):
     result = disks.get_partitions_names()
     return result
Exemple #3
0
    def partition_lookup(self, name):
        if name not in disks.get_partitions_names():
            raise NotFoundError("KCHPART0001E", {'name': name})

        return disks.get_partition_details(name)
Exemple #4
0
 def partition_lookup(self, name):
     if name not in disks.get_partitions_names():
         raise NotFoundError("Partition %s not found in the host"
                             % name)
     return disks.get_partition_details(name)
Exemple #5
0
 def partitions_get_list(self):
     result = disks.get_partitions_names()
     return result