From 0698f85371bf0689d6aa001e9099156766ae0a4f Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Tue, 26 Jan 2016 10:30:18 -0700 Subject: [PATCH] Add QuotaExceededError To represent failures to provision OpenStack instances because of a maxed-out quota Signed-off-by: Zack Cerza --- teuthology/exceptions.py | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- 2.39.5