Add stale revision error code

Change-Id: I6b3586885d210867c2fd4ab9ba66273b11a47843
This commit is contained in:
asarfaty 2020-10-28 09:23:55 +02:00
parent 253a76c527
commit f4a16ac6d0

View File

@ -90,6 +90,7 @@ def http_error_to_exception(status_code, error_code, related_error_codes=None):
'500030': exceptions.ResourceInUse, '500030': exceptions.ResourceInUse,
'500087': exceptions.StaleRevision, '500087': exceptions.StaleRevision,
'500105': exceptions.NsxOverlapAddresses, '500105': exceptions.NsxOverlapAddresses,
'500232': exceptions.StaleRevision, # Missing dependent objects
'503040': exceptions.NsxSegemntWithVM, '503040': exceptions.NsxSegemntWithVM,
'100148': exceptions.StaleRevision}, '100148': exceptions.StaleRevision},
requests.codes.CONFLICT: exceptions.StaleRevision, requests.codes.CONFLICT: exceptions.StaleRevision,