Remove retry from nsgroup member update call
Change-Id: Id4770a3497321d195e6b3ad25806dacc55bae7d5
This commit is contained in:
parent
6bd068859e
commit
e1c26e52fc
@ -192,15 +192,8 @@ class NsxLibNsGroup(utils.NsxLibApiBase):
|
||||
'value': target_id}
|
||||
|
||||
def _update_with_members(self, nsgroup_id, members, action):
|
||||
#Using internal method so we can access max_attempts in the decorator
|
||||
@utils.retry_upon_exception(
|
||||
exceptions.StaleRevision,
|
||||
max_attempts=self.nsxlib_config.max_attempts)
|
||||
def _do_update():
|
||||
members_update = 'ns-groups/%s?action=%s' % (nsgroup_id, action)
|
||||
return self.client.create(members_update, members)
|
||||
|
||||
return _do_update()
|
||||
members_update = 'ns-groups/%s?action=%s' % (nsgroup_id, action)
|
||||
return self.client.create(members_update, members)
|
||||
|
||||
def add_members(self, nsgroup_id, target_type, target_ids):
|
||||
members = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user