mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 07:26:03 -03:30
Updating dependency check for jobs, project updates, and inventory updates
This commit is contained in:
@@ -334,10 +334,12 @@ class ProjectUpdate(UnifiedJob, ProjectOptions):
|
||||
return RunProjectUpdate
|
||||
|
||||
def is_blocked_by(self, obj):
|
||||
# FIXME: Block update when any job is running using this project!
|
||||
if type(obj) == ProjectUpdate:
|
||||
if self.project == obj.project:
|
||||
return True
|
||||
if type(obj) == Job:
|
||||
if self.project == obj.project:
|
||||
return True
|
||||
return False
|
||||
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user