summaryrefslogtreecommitdiffstats
path: root/nova/exception.py
diff options
context:
space:
mode:
authorJosh Kearney <josh@jk0.org>2011-08-11 17:10:25 -0500
committerJosh Kearney <josh@jk0.org>2011-08-11 17:10:25 -0500
commitb29bc97d5a69abe71dea5b9ff9dcfc65fcd59cc9 (patch)
tree8f2255023974f23c79edaa272405dbe9cedb1035 /nova/exception.py
parentfe0bde67193ce76376e72a7263b89240a63722a8 (diff)
downloadnova-b29bc97d5a69abe71dea5b9ff9dcfc65fcd59cc9.tar.gz
nova-b29bc97d5a69abe71dea5b9ff9dcfc65fcd59cc9.tar.xz
nova-b29bc97d5a69abe71dea5b9ff9dcfc65fcd59cc9.zip
Check compressed image size and PEP8 cleanup.
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 0d60cb0bf..77ebf3c88 100644
--- a/nova/exception.py
+++ b/nova/exception.py
@@ -717,3 +717,7 @@ class CannotResizeToSameSize(NovaException):
class CannotResizeToSmallerSize(NovaException):
message = _("Resizing to a smaller size is not supported.")
+
+
+class ImageTooLarge(NovaException):
+ message = _("Image is larger than instance type allows")