mirror of
https://github.com/ansible/awx.git
synced 2026-08-04 03:50:01 -02:30
generalize schedule prompts validation
This makes ScheduleSerializer behave same as WFJT nodes Prevents providing job_type for workflow jobs, as example
This commit is contained in:
@@ -431,7 +431,8 @@ class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique, Notificatio
|
||||
'''
|
||||
errors = {}
|
||||
if kwargs:
|
||||
errors['all'] = [_("Fields {} are not allowed on launch.").format(kwargs.keys())]
|
||||
for field_name in kwargs.keys():
|
||||
errors[field_name] = [_("Field is not allowed on launch.")]
|
||||
return ({}, kwargs, errors)
|
||||
|
||||
def accept_or_ignore_variables(self, data, errors=None):
|
||||
|
||||
Reference in New Issue
Block a user