Browse Source

Merge "NSX policy transaction: Modify retry policy" into stable/train

changes/41/819841/1
Zuul 7 months ago committed by Gerrit Code Review
parent
commit
d4b9c604a2
  1. 6
      vmware_nsxlib/v3/policy/transaction.py

6
vmware_nsxlib/v3/policy/transaction.py

@ -219,9 +219,11 @@ class NsxPolicyTransaction(object):
if body:
headers = {'nsx-enable-partial-patch': 'true'}
@utils.retry_upon_exception(
@utils.retry_random_upon_exception(
(exceptions.NsxPendingDelete, exceptions.StaleRevision),
max_attempts=self.client.max_attempts)
delay=1,
max_delay=10,
max_attempts=self.client.max_attempts + 5)
def _do_patch_with_retry():
self.client.patch(url, body, headers=headers)

Loading…
Cancel
Save