1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-31 15:21:13 +03:00

Fix a bug where checking cache timeout blackout could fail on projects

This commit is contained in:
Matthew Jones 2014-11-20 11:27:40 -05:00
parent bb5dc1b9f9
commit ca5689c8ad

View File

@ -302,7 +302,7 @@ class Project(UnifiedJobTemplate, ProjectOptions):
def cache_timeout_blocked(self):
if not self.last_job_run:
return False
if (self.last_job_run + datetime.timedelta(seconds=self.update_cache_timeout)) > now():
if (self.last_job_run + datetime.timedelta(seconds=self.scm_update_cache_timeout)) > now():
return True
return False