Merge pull request #27 from AlanCoding/initial_sync

Use "sync" type when doing SCM inv src update on create
This commit is contained in:
Alan Rominger
2017-07-24 21:20:08 -04:00
committed by GitHub
4 changed files with 4 additions and 4 deletions

View File

@@ -1311,7 +1311,7 @@ class InventorySource(UnifiedJobTemplate, InventorySourceOptions):
# Schedule a new Project update if one is not already queued
if self.source_project and not self.source_project.project_updates.filter(
status__in=['new', 'pending', 'waiting']).exists():
self.source_project.update()
self.update()
if not getattr(_inventory_updates, 'is_updating', False):
if self.inventory is not None:
self.inventory.update_computed_fields(update_groups=False, update_hosts=False)