From: Zack Cerza Date: Tue, 26 Jan 2016 17:30:18 +0000 (-0700) Subject: Add QuotaExceededError X-Git-Tag: 1.1.0~684^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=0698f85371bf0689d6aa001e9099156766ae0a4f;p=teuthology.git Add QuotaExceededError To represent failures to provision OpenStack instances because of a maxed-out quota Signed-off-by: Zack Cerza --- diff --git a/teuthology/exceptions.py b/teuthology/exceptions.py index 4e4e135fd8..1d18a28608 100644 --- a/teuthology/exceptions.py +++ b/teuthology/exceptions.py @@ -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