mirror of
https://github.com/ansible/awx.git
synced 2026-05-19 14:57:39 -02:30
Merge pull request #173 from chrismeyersfsu/fix-cleanup_jobs
include ad-hoc-commands when running system cleanup_jobs
This commit is contained in:
@@ -1357,7 +1357,7 @@ class RunSystemJob(BaseTask):
|
|||||||
if 'days' in json_vars and system_job.job_type != 'cleanup_facts':
|
if 'days' in json_vars and system_job.job_type != 'cleanup_facts':
|
||||||
args.extend(['--days', str(json_vars.get('days', 60))])
|
args.extend(['--days', str(json_vars.get('days', 60))])
|
||||||
if system_job.job_type == 'cleanup_jobs':
|
if system_job.job_type == 'cleanup_jobs':
|
||||||
args.extend(['--jobs', '--project-updates', '--inventory-updates', '--management-jobs'])
|
args.extend(['--jobs', '--project-updates', '--inventory-updates', '--management-jobs', '--ad-hoc-commands'])
|
||||||
if system_job.job_type == 'cleanup_facts':
|
if system_job.job_type == 'cleanup_facts':
|
||||||
if 'older_than' in json_vars:
|
if 'older_than' in json_vars:
|
||||||
args.extend(['--older_than', str(json_vars['older_than'])])
|
args.extend(['--older_than', str(json_vars['older_than'])])
|
||||||
|
|||||||
Reference in New Issue
Block a user