summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorMichael Still <mikal@stillhq.com>2012-09-23 20:35:20 +1000
committerMichael Still <mikal@stillhq.com>2012-09-26 16:25:02 +1000
commit4be437da11d41fe7c5495971f3d5408cbfd30bfe (patch)
treefe58452dac5169e4a32b8709cd671c90a8560c51 /nova/exception.py
parentc367fa5e4a5e4712bde9fc319ae6c2f4f2add606 (diff)
Check that an image is active before spawning instances.
Resolves bug/1054163. Change-Id: I4095fcac300a161e6da93bdc14eb43257d4f1aee
Diffstat (limited to 'nova/exception.py')
-rw-r--r--nova/exception.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/nova/exception.py b/nova/exception.py
index 28fb1ee0a..0a088cb8c 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -213,6 +213,10 @@ class PolicyNotAuthorized(NotAuthorized):
message = _("Policy doesn't allow %(action)s to be performed.")
+class ImageNotActive(NovaException):
+ message = _("Image %(image_id)s is not active.")
+
+
class ImageNotAuthorized(NovaException):
message = _("Not authorized for image %(image_id)s.")