Change Conflict's error message
Conflict exception's error message is sometimes misleading, e.g., <class 'tempest.lib.exceptions.Conflict'>, An object with that identifier already exists Details: {u'message': u'Unable to complete operation on subnet 98575cac-0a2f-4214-8dea-50c62d31e736: One or more ports have an IP allocation from this subnet.', u'type': u'SubnetInUse', u'detail': u''} according to https://tools.ietf.org/html/rfc7231#section-6.5.8, "The 409 (Conflict) status code indicates that the request could not be completed due to a conflict with the current state of the target resource", so this is to change the error message to "Conflict with state of target resource". Change-Id: Icc118ec67f05cc7640e2b5f12162547ae5c3dae5changes/97/522497/1
parent
87adf8d84f
commit
f312f1506d
Loading…
Reference in New Issue