]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add QuotaExceededError
authorZack Cerza <zack@redhat.com>
Tue, 26 Jan 2016 17:30:18 +0000 (10:30 -0700)
committerZack Cerza <zack@redhat.com>
Wed, 27 Jan 2016 20:32:58 +0000 (13:32 -0700)
To represent failures to provision OpenStack instances because of a
maxed-out quota

Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/exceptions.py

index 4e4e135fd8daf4c6ba14aa7225ffe9a1ddd03853..1d18a28608ce1057f70ec77eeec8f95e3e0682ed 100644 (file)
@@ -138,3 +138,10 @@ class SELinuxError(Exception):
     def __str__(self):
         return "SELinux denials found on {node}: {denials}".format(
             node=self.node, denials=self.denials)
+
+class QuotaExceededError(Exception):
+    def __init__(self, message):
+        self.message = message
+
+    def __str__(self):
+        return self.message