Returns more appropriate error when address pool is exhausted

Fixes bug 1086226

Change-Id: I97a73151a1ed42877116238a6a741c68c75e199a
This commit is contained in:
Gary Kotton 2012-12-04 14:41:41 +00:00
parent 64f2a38bc9
commit b939b0749a

View File

@ -47,6 +47,7 @@ FAULT_MAP = {exceptions.NotFound: webob.exc.HTTPNotFound,
netaddr.AddrFormatError: webob.exc.HTTPBadRequest,
AttributeError: webob.exc.HTTPBadRequest,
ValueError: webob.exc.HTTPBadRequest,
exceptions.IpAddressGenerationFailure: webob.exc.HTTPConflict,
}
QUOTAS = quota.QUOTAS