Add another error_code for StaleRevision error

100148 is returned if a rule in a section has the wrong revision

Change-Id: I8557a6da76b52ca3c41303336c78738e209a134e
This commit is contained in:
asarfaty 2020-03-11 14:48:07 +02:00
parent cddf191084
commit b558f5df9b
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: