mirror of
https://github.com/ansible/awx.git
synced 2026-02-20 12:40:06 -03:30
use insights etag as a cache
* During insights project updates, if the etag from insights matches the last etag (scm_revision) then don't get all the maintenance playbooks. Otherwise, get all the maintenance playbooks and update scm_revision with the etag.
This commit is contained in:
@@ -1291,7 +1291,8 @@ class RunProjectUpdate(BaseTask):
|
||||
'scm_clean': project_update.scm_clean,
|
||||
'scm_delete_on_update': project_update.scm_delete_on_update if project_update.job_type == 'check' else False,
|
||||
'scm_full_checkout': True if project_update.job_type == 'run' else False,
|
||||
'scm_revision_output': self.revision_path
|
||||
'scm_revision_output': self.revision_path,
|
||||
'scm_revision': project_update.project.scm_revision,
|
||||
})
|
||||
args.extend(['-e', json.dumps(extra_vars)])
|
||||
args.append('project_update.yml')
|
||||
|
||||
Reference in New Issue
Block a user