Merge "Add another error_code for StaleRevision error"

This commit is contained in:
Zuul 2020-03-12 09:17:34 +00:00 committed by Gerrit Code Review
commit 31756b4941
1 changed files with 2 additions and 1 deletions

View File

@ -42,7 +42,8 @@ def http_error_to_exception(status_code, error_code):
'500045': exceptions.NsxPendingDelete,
'500030': exceptions.ResourceInUse,
'500105': exceptions.NsxOverlapAddresses,
'503040': exceptions.NsxSegemntWithVM},
'503040': exceptions.NsxSegemntWithVM,
'100148': exceptions.StaleRevision},
requests.codes.CONFLICT: exceptions.StaleRevision,
requests.codes.PRECONDITION_FAILED: exceptions.StaleRevision,
requests.codes.INTERNAL_SERVER_ERROR: