mirror of
https://github.com/ansible/awx.git
synced 2026-03-07 11:41:08 -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:
@@ -919,7 +919,7 @@ class InventorySource(UnifiedJobTemplate, InventorySourceOptions):
|
|||||||
if new_instance and self.inventory and replace_text in self.name:
|
if new_instance and self.inventory and replace_text in self.name:
|
||||||
self.name = self.name.replace(replace_text, str(self.pk))
|
self.name = self.name.replace(replace_text, str(self.pk))
|
||||||
self.save(update_fields=['name'])
|
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):
|
def _get_current_status(self):
|
||||||
if self.source:
|
if self.source:
|
||||||
|
|||||||
Reference in New Issue
Block a user