Updating dependency check for jobs, project updates, and inventory updates

This commit is contained in:
Matthew Jones
2014-03-31 17:15:38 -04:00
parent 034a5c7044
commit 4a535e5404
3 changed files with 9 additions and 7 deletions

View File

@@ -256,9 +256,8 @@ class Job(UnifiedJob, JobOptions):
return True
return False
if type(obj) == InventoryUpdate:
for i_s in self.inventory.inventory_sources.filter(active=True):
if i_s == obj.inventory_source:
return True
if self.inventory == obj.inventory_source.inventory:
return True
return False
if type(obj) == ProjectUpdate:
if obj.project == self.project: