Fix new StaleRevision exception
Commit I561f3f7be47a09876fcd8b717896ee127263a3c7 added code 500090 under the wrong category Change-Id: I27e6a63390230f138c7215d35aed4c97dfdcbf6d
This commit is contained in:
parent
3229ffc138
commit
2dbcdc1f7a
|
@ -33,6 +33,7 @@ def http_error_to_exception(status_code, error_code):
|
||||||
errors = {
|
errors = {
|
||||||
requests.codes.NOT_FOUND:
|
requests.codes.NOT_FOUND:
|
||||||
{'202': exceptions.BackendResourceNotFound,
|
{'202': exceptions.BackendResourceNotFound,
|
||||||
|
'500090': exceptions.StaleRevision,
|
||||||
'default': exceptions.ResourceNotFound},
|
'default': exceptions.ResourceNotFound},
|
||||||
requests.codes.BAD_REQUEST:
|
requests.codes.BAD_REQUEST:
|
||||||
{'60508': exceptions.NsxIndexingInProgress,
|
{'60508': exceptions.NsxIndexingInProgress,
|
||||||
|
@ -41,7 +42,6 @@ def http_error_to_exception(status_code, error_code):
|
||||||
'8327': exceptions.NsxOverlapVlan,
|
'8327': exceptions.NsxOverlapVlan,
|
||||||
'500045': exceptions.NsxPendingDelete,
|
'500045': exceptions.NsxPendingDelete,
|
||||||
'500030': exceptions.ResourceInUse,
|
'500030': exceptions.ResourceInUse,
|
||||||
'500090': exceptions.StaleRevision,
|
|
||||||
'500105': exceptions.NsxOverlapAddresses,
|
'500105': exceptions.NsxOverlapAddresses,
|
||||||
'503040': exceptions.NsxSegemntWithVM,
|
'503040': exceptions.NsxSegemntWithVM,
|
||||||
'100148': exceptions.StaleRevision},
|
'100148': exceptions.StaleRevision},
|
||||||
|
|
Loading…
Reference in New Issue