From 4be437da11d41fe7c5495971f3d5408cbfd30bfe Mon Sep 17 00:00:00 2001 From: Michael Still Date: Sun, 23 Sep 2012 20:35:20 +1000 Subject: Check that an image is active before spawning instances. Resolves bug/1054163. Change-Id: I4095fcac300a161e6da93bdc14eb43257d4f1aee --- nova/exception.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'nova/exception.py') 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.") -- cgit