From 9efc77c3be482f35000a0bc27a4d6bca20e986ae Mon Sep 17 00:00:00 2001 From: asarfaty Date: Mon, 30 Mar 2020 13:26:17 +0200 Subject: [PATCH] Fix new StaleRevision exception Commit I561f3f7be47a09876fcd8b717896ee127263a3c7 added code 500090 under the wrong category Change-Id: I27e6a63390230f138c7215d35aed4c97dfdcbf6d --- vmware_nsxlib/v3/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsxlib/v3/client.py b/vmware_nsxlib/v3/client.py index 7866c4e4..8ccd403f 100644 --- a/vmware_nsxlib/v3/client.py +++ b/vmware_nsxlib/v3/client.py @@ -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},