From 10667fc855c360b14aaee3e58ecdd444f06c94ab Mon Sep 17 00:00:00 2001 From: Ryan Petrello Date: Thu, 8 Nov 2018 15:14:07 -0500 Subject: [PATCH] fix an unbound variable see: https://github.com/ansible/awx/issues/2642j --- awx/main/models/unified_jobs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/main/models/unified_jobs.py b/awx/main/models/unified_jobs.py index 0c0d82d31e..f38b5e5409 100644 --- a/awx/main/models/unified_jobs.py +++ b/awx/main/models/unified_jobs.py @@ -343,8 +343,8 @@ class UnifiedJobTemplate(PolymorphicModel, CommonModelNameNotUnique, Notificatio validated_kwargs = kwargs.copy() if unallowed_fields: if parent_field_name is None: - logger.warn(six.text_type('Fields {} are not allowed as overrides to spawn {} from {}.').format( - six.text_type(', ').join(unallowed_fields), unified_job, self + logger.warn(six.text_type('Fields {} are not allowed as overrides to spawn from {}.').format( + six.text_type(', ').join(unallowed_fields), self )) map(validated_kwargs.pop, unallowed_fields)