mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 18:09:57 -03:30
fix prompts contradiction: should be non-functional change
This commit is contained in:
parent
018a8e12de
commit
bca9bcf6dd
@ -4458,9 +4458,7 @@ class WorkflowJobLaunchSerializer(BaseSerializer):
|
||||
def validate(self, attrs):
|
||||
template = self.instance
|
||||
|
||||
accepted, rejected, errors = template._accept_or_ignore_job_kwargs(
|
||||
_exclude_errors=['required'],
|
||||
**attrs)
|
||||
accepted, rejected, errors = template._accept_or_ignore_job_kwargs(**attrs)
|
||||
self._ignored_fields = rejected
|
||||
|
||||
if template.inventory and template.inventory.pending_deletion is True:
|
||||
|
||||
@ -420,7 +420,7 @@ class WorkflowJobTemplate(UnifiedJobTemplate, WorkflowJobOptions, SurveyJobTempl
|
||||
workflow_job.copy_nodes_from_original(original=self)
|
||||
return workflow_job
|
||||
|
||||
def _accept_or_ignore_job_kwargs(self, _exclude_errors=(), **kwargs):
|
||||
def _accept_or_ignore_job_kwargs(self, **kwargs):
|
||||
exclude_errors = kwargs.pop('_exclude_errors', [])
|
||||
prompted_data = {}
|
||||
rejected_data = {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user