mirror of
https://github.com/ansible/awx.git
synced 2026-05-23 00:37:37 -02:30
Treat instance_groups prompt as template-less
This commit is contained in:
@@ -292,7 +292,6 @@ class JobTemplate(UnifiedJobTemplate, JobOptions, SurveyJobTemplateMixin, Resour
|
||||
'job_slice_number',
|
||||
'job_slice_count',
|
||||
'execution_environment',
|
||||
'instance_groups',
|
||||
]
|
||||
)
|
||||
|
||||
@@ -605,13 +604,6 @@ class Job(UnifiedJob, JobOptions, SurveyJobMixin, JobNotificationMixin, TaskMana
|
||||
default=1,
|
||||
help_text=_("If ran as part of sliced jobs, the total number of slices. " "If 1, job is not part of a sliced job."),
|
||||
)
|
||||
instance_groups = OrderedManyToManyField(
|
||||
'InstanceGroup',
|
||||
related_name='job_instance_groups',
|
||||
blank=True,
|
||||
editable=False,
|
||||
through='JobInstanceGroupMembership',
|
||||
)
|
||||
|
||||
def _get_parent_field_name(self):
|
||||
return 'job_template'
|
||||
|
||||
Reference in New Issue
Block a user