Skip to content

Commit ab520b2

Browse files
author
pjbreaux
authored
Merge pull request #534 from zancas/feature.turn_off_check_generation_533
turn of generation checks.
2 parents 8dcd4f8 + c384bdd commit ab520b2

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

f5/bigip/resource.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,9 @@ def _update(self, **kwargs):
437437

438438
# Get the current state of the object on BIG-IP® and check the
439439
# generation Use pop here because we don't want force in the data_dict
440-
force = self._check_force_arg(kwargs.pop('force', False))
440+
force = self._check_force_arg(kwargs.pop('force', True))
441441
if not force:
442+
# generation has a known server-side error
442443
self._check_generation()
443444

444445
# Save the meta data so we can add it back into self after we

f5/bigip/test/test_resource.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,8 @@ def test__create_with_Collision():
158158

159159

160160
class TestResource_update(object):
161-
def test__check_generation_with_mismatch(self):
161+
def itest__check_generation_with_mismatch(self):
162+
# generation is borked server-side
162163
r = Resource(mock.MagicMock())
163164
r._meta_data['allowed_lazy_attributes'] = []
164165
r._meta_data['uri'] = 'URI'

0 commit comments

Comments
 (0)