1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-02 09:51:09 +03:00

Leave another TODO on the job runner, fix a misspelling on the project update hook

This commit is contained in:
Matthew Jones 2014-01-27 12:20:21 -05:00
parent d4426d88c4
commit 6f069f6ff0
2 changed files with 2 additions and 1 deletions

View File

@ -342,6 +342,7 @@ class Job(CommonTask):
opts = dict([(field, kwargs.get(field, '')) for field in needed]) opts = dict([(field, kwargs.get(field, '')) for field in needed])
if not all(opts.values()): if not all(opts.values()):
return False return False
# TODO: This is temporary to allow a dependent task to continue
self.status = 'waiting' self.status = 'waiting'
self.save(update_fields=['status']) self.save(update_fields=['status'])
transaction.commit() transaction.commit()

View File

@ -286,7 +286,7 @@ class Project(CommonModel):
if self.can_update: if self.can_update:
project_update = self.project_updates.create() project_update = self.project_updates.create()
project_update_sig = project_update.start_signature() project_update_sig = project_update.start_signature()
return (project_update, project_updaate_sig) return (project_update, project_update_sig)
def update(self, **kwargs): def update(self, **kwargs):
if self.can_update: if self.can_update: