mirror of
https://github.com/ansible/awx.git
synced 2026-01-14 03:10:42 -03:30
Make sure we include schedules as things that can be included when
creatinga concrete job(any) from a job template, project update, or inventory update
This commit is contained in:
parent
9f6230f7cc
commit
3d3cf2bb9e
@ -1085,7 +1085,7 @@ class InventorySource(UnifiedJobTemplate, InventorySourceOptions):
|
||||
|
||||
@classmethod
|
||||
def _get_unified_job_field_names(cls):
|
||||
return ['name', 'description', 'source', 'source_path', 'source_script', 'source_vars',
|
||||
return ['name', 'description', 'source', 'source_path', 'source_script', 'source_vars', 'schedule',
|
||||
'credential', 'source_regions', 'instance_filters', 'group_by', 'overwrite', 'overwrite_vars']
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
|
||||
@ -194,7 +194,7 @@ class JobTemplate(UnifiedJobTemplate, JobOptions):
|
||||
@classmethod
|
||||
def _get_unified_job_field_names(cls):
|
||||
return ['name', 'description', 'job_type', 'inventory', 'project',
|
||||
'playbook', 'credential', 'cloud_credential', 'forks',
|
||||
'playbook', 'credential', 'cloud_credential', 'forks', 'schedule',
|
||||
'limit', 'verbosity', 'extra_vars', 'job_tags', 'launch_type',
|
||||
'force_handlers', 'skip_tags', 'start_at_task']
|
||||
|
||||
|
||||
@ -221,7 +221,7 @@ class Project(UnifiedJobTemplate, ProjectOptions):
|
||||
def _get_unified_job_field_names(cls):
|
||||
return ['name', 'description', 'local_path', 'scm_type', 'scm_url',
|
||||
'scm_branch', 'scm_clean', 'scm_delete_on_update',
|
||||
'credential']
|
||||
'credential', 'schedule']
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
new_instance = not bool(self.pk)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user