Merge "Introduce UnsupportedOperation EC2 error code"

This commit is contained in:
Jenkins
2013-09-03 21:09:03 +00:00
committed by Gerrit Code Review

View File

@@ -286,6 +286,7 @@ class InvalidInput(Invalid):
class InvalidVolume(Invalid):
ec2_code = 'UnsupportedOperation'
msg_fmt = _("Invalid volume") + ": %(reason)s"
@@ -661,6 +662,7 @@ class FixedIpInvalid(Invalid):
class NoMoreFixedIps(NovaException):
ec2_code = 'UnsupportedOperation'
msg_fmt = _("Zero fixed ips available.")
@@ -673,6 +675,7 @@ class FloatingIpExists(Duplicate):
class FloatingIpNotFound(NotFound):
ec2_code = "UnsupportedOpperation"
msg_fmt = _("Floating ip not found for id %(id)s.")
@@ -703,6 +706,7 @@ class NoMoreFloatingIps(FloatingIpNotFound):
class FloatingIpAssociated(NovaException):
ec2_code = "UnsupportedOpperation"
msg_fmt = _("Floating ip %(address)s is associated.")
@@ -715,10 +719,12 @@ class NoFloatingIpsDefined(NotFound):
class NoFloatingIpInterface(NotFound):
ec2_code = "UnsupportedOpperation"
msg_fmt = _("Interface %(interface)s not found.")
class CannotDisassociateAutoAssignedFloatingIP(NovaException):
ec2_code = "UnsupportedOpperation"
msg_fmt = _("Cannot disassociate auto assigned floating ip")