X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=ceph%2Fsrc%2Fceph-volume%2Fceph_volume%2Fexceptions.py;h=5c6429483f8a9f09d10adbc772620ab89316142b;hb=f6b5b4d738b87d88d2de35127b6b0e41eae2a272;hp=f40b7b11d37a9811a94ea2bc64cb9a8a0a717429;hpb=12732ca2e80d168d344a265acffc1fbd1fa1f1b5;p=ceph.git diff --git a/ceph/src/ceph-volume/ceph_volume/exceptions.py b/ceph/src/ceph-volume/ceph_volume/exceptions.py index f40b7b11d..5c6429483 100644 --- a/ceph/src/ceph-volume/ceph_volume/exceptions.py +++ b/ceph/src/ceph-volume/ceph_volume/exceptions.py @@ -50,37 +50,6 @@ class SuperUserError(Exception): return 'This command needs to be executed with sudo or as root' -class MultiplePVsError(Exception): - - def __init__(self, pv_name): - self.pv_name = pv_name - - def __str__(self): - msg = "Got more than 1 result looking for physical volume: %s" % self.pv_name - return msg - - -class MultipleLVsError(Exception): - - def __init__(self, lv_name, lv_path): - self.lv_name = lv_name - self.lv_path = lv_path - - def __str__(self): - msg = "Got more than 1 result looking for %s with path: %s" % (self.lv_name, self.lv_path) - return msg - - -class MultipleVGsError(Exception): - - def __init__(self, vg_name): - self.vg_name = vg_name - - def __str__(self): - msg = "Got more than 1 result looking for volume group: %s" % self.vg_name - return msg - - class SizeAllocationError(Exception): def __init__(self, requested, available):