]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/ceph-volume/ceph_volume/exceptions.py
update sources to v12.2.1
[ceph.git] / ceph / src / ceph-volume / ceph_volume / exceptions.py
index 75c6b6c64053697bfa86f042eb6072fbab9c419e..211d9d09b9e04d01e8a4006b1e2df34c7dee50a1 100644 (file)
@@ -50,6 +50,16 @@ 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):