fix two inv updates created from 1 jt run

This commit is contained in:
Chris Meyers
2016-12-09 13:27:58 -05:00
parent cc7c2957cf
commit 812b7c5f5f
4 changed files with 36 additions and 7 deletions

View File

@@ -276,6 +276,9 @@ class TaskManager():
dependencies.append(project_task)
# Inventory created 2 seconds behind job
'''
Inventory may have already been synced from a provision callback.
'''
inventory_sources_already_updated = task.get_inventory_sources_already_updated()
for inventory_source_task in self.graph.get_inventory_sources(task['inventory_id']):