mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 11:00:03 -03:30
Make sure we don't unnecessarily update hosts and groups when invoking
the inventory computed fields update upon saving the inventory source
This commit is contained in:
parent
807577abc8
commit
3f53fc97b2
@ -919,7 +919,7 @@ class InventorySource(UnifiedJobTemplate, InventorySourceOptions):
|
||||
if new_instance and self.inventory and replace_text in self.name:
|
||||
self.name = self.name.replace(replace_text, str(self.pk))
|
||||
self.save(update_fields=['name'])
|
||||
self.inventory.update_computed_fields()
|
||||
self.inventory.update_computed_fields(update_groups=False, update_hosts=False)
|
||||
|
||||
def _get_current_status(self):
|
||||
if self.source:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user