remove computed inventory fields from Host and Group

This commit is contained in:
Ryan Petrello
2019-12-04 13:16:37 -05:00
parent 78e2cd7084
commit 568606d2c8
13 changed files with 88 additions and 301 deletions

View File

@@ -125,9 +125,9 @@ def project_playbooks():
@pytest.fixture
def run_computed_fields_right_away(request):
def run_me(inventory_id, should_update_hosts=True):
def run_me(inventory_id):
i = Inventory.objects.get(id=inventory_id)
i.update_computed_fields(update_hosts=should_update_hosts)
i.update_computed_fields()
mocked = mock.patch(
'awx.main.signals.update_inventory_computed_fields.delay',