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:
Matthew Jones 2014-07-10 12:35:31 -04:00
parent 807577abc8
commit 3f53fc97b2

View File

@ -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: