fix FloatingIpAlreadyInUse to use correct string pattern, convert ApiErrors to 400 responses

This commit is contained in:
Anthony Young
2011-08-30 20:45:51 -07:00
parent 3f575dfd97
commit c239d18e36

View File

@@ -534,7 +534,7 @@ class NoMoreFloatingIps(FloatingIpNotFound):
class FloatingIpAlreadyInUse(NovaException):
message = _("Floating ip %(address) already in use by %(fixed_ip).")
message = _("Floating ip %(address)s already in use by %(fixed_ip)s.")
class NoFloatingIpsDefined(NotFound):