From 93a84fa058e71e83e6c8ebdf8222230bc1e751fe Mon Sep 17 00:00:00 2001 From: asarfaty Date: Wed, 28 Oct 2020 09:23:55 +0200 Subject: [PATCH] Add stale revision error code Change-Id: I6b3586885d210867c2fd4ab9ba66273b11a47843 --- vmware_nsxlib/v3/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vmware_nsxlib/v3/client.py b/vmware_nsxlib/v3/client.py index e7dd0529..b46fe5d4 100644 --- a/vmware_nsxlib/v3/client.py +++ b/vmware_nsxlib/v3/client.py @@ -44,6 +44,7 @@ def http_error_to_exception(status_code, error_code, related_error_codes=None): '500030': exceptions.ResourceInUse, '500087': exceptions.StaleRevision, '500105': exceptions.NsxOverlapAddresses, + '500232': exceptions.StaleRevision, # Missing dependent objects '503040': exceptions.NsxSegemntWithVM, '100148': exceptions.StaleRevision}, requests.codes.CONFLICT: exceptions.StaleRevision,