Browse Source

Fix new StaleRevision exception

Commit I561f3f7be47a09876fcd8b717896ee127263a3c7 added code
500090 under the wrong category

Change-Id: I27e6a63390230f138c7215d35aed4c97dfdcbf6d
tags/15.0.7
asarfaty 3 months ago
parent
commit
2dbcdc1f7a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      vmware_nsxlib/v3/client.py

+ 1
- 1
vmware_nsxlib/v3/client.py View File

@@ -33,6 +33,7 @@ def http_error_to_exception(status_code, error_code):
errors = {
requests.codes.NOT_FOUND:
{'202': exceptions.BackendResourceNotFound,
'500090': exceptions.StaleRevision,
'default': exceptions.ResourceNotFound},
requests.codes.BAD_REQUEST:
{'60508': exceptions.NsxIndexingInProgress,
@@ -41,7 +42,6 @@ def http_error_to_exception(status_code, error_code):
'8327': exceptions.NsxOverlapVlan,
'500045': exceptions.NsxPendingDelete,
'500030': exceptions.ResourceInUse,
'500090': exceptions.StaleRevision,
'500105': exceptions.NsxOverlapAddresses,
'503040': exceptions.NsxSegemntWithVM,
'100148': exceptions.StaleRevision},


Loading…
Cancel
Save