1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-01 16:51:11 +03:00

fix bug creating inventory source schedules

This commit is contained in:
AlanCoding 2017-12-12 17:49:51 -05:00
parent 2c64a2ce63
commit 7243f871b4
No known key found for this signature in database
GPG Key ID: FD2C3C012A72926B
2 changed files with 3 additions and 3 deletions

View File

@ -1558,10 +1558,10 @@ class SystemJobTemplate(UnifiedJobTemplate, SystemJobOptions):
success=list(success_notification_templates),
any=list(any_notification_templates))
def _accept_or_ignore_job_kwargs(self, **kwargs):
def _accept_or_ignore_job_kwargs(self, _exclude_errors=None, **kwargs):
extra_data = kwargs.pop('extra_vars', {})
prompted_data, rejected_data, errors = super(SystemJobTemplate, self)._accept_or_ignore_job_kwargs(**kwargs)
prompted_vars, rejected_vars, errors = self.accept_or_ignore_variables(extra_data, errors)
prompted_vars, rejected_vars, errors = self.accept_or_ignore_variables(extra_data, errors, _exclude_errors=_exclude_errors)
if prompted_vars:
prompted_data['extra_vars'] = prompted_vars
if rejected_vars:

View File

@ -425,7 +425,7 @@ class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique, Notificatio
copy_m2m_relationships(self, unified_jt, fields)
return unified_jt
def _accept_or_ignore_job_kwargs(self, **kwargs):
def _accept_or_ignore_job_kwargs(self, _exclude_errors=None, **kwargs):
'''
Override in subclass if template accepts _any_ prompted params
'''