Created exceptions for accepting in OSAPI, and handled them appropriately.
This commit is contained in:
@@ -692,3 +692,15 @@ class PasteConfigNotFound(NotFound):
|
||||
|
||||
class PasteAppNotFound(NotFound):
|
||||
message = _("Could not load paste app '%(name)s' from %(path)s")
|
||||
|
||||
|
||||
class CannotResizeToSameSize(NovaException):
|
||||
message = _("When resizing, instances must change size!")
|
||||
|
||||
|
||||
class CannotResizeToSmallerSize(NovaException):
|
||||
message = _("Resizing to a smaller size is not supported.")
|
||||
|
||||
|
||||
class FlavorDoesNotExist(NovaException):
|
||||
message = _("Requested flavor '%(flavor_id)s' does not exist.")
|
||||
|
Reference in New Issue
Block a user