Handle the case when a v1.0 api tries to list servers that contain image hrefs.

This commit is contained in:
Naveed Massjouni
2011-05-31 11:58:15 -04:00
parent 94c64c4f02
commit 79d461cc0f

View File

@@ -284,7 +284,12 @@ class DiskNotFound(NotFound):
class InvalidImageRef(Invalid):
message = _("Invalid image ref %(image_href)s.")
message = _("Invalid image href %(image_href)s.")
class ListingImageRefsNotSupported(Invalid):
message = _("Some images have been stored via hrefs."
+ " This version of the api does not support displaying image hrefs.")
class ImageNotFound(NotFound):