From d549877ebdc5dbb605e9156a846774caf8141a91 Mon Sep 17 00:00:00 2001 From: Jeff Bradberry Date: Mon, 30 Sep 2019 15:26:49 -0400 Subject: [PATCH] Check for the existance of a UnifiedJobTemplate with the same webhook GUID instead of trying (incorrectly) to be specific about the JT/WFJT type. --- awx/api/views/webhooks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/api/views/webhooks.py b/awx/api/views/webhooks.py index 6bd4ff6983..e3ed6e64c9 100644 --- a/awx/api/views/webhooks.py +++ b/awx/api/views/webhooks.py @@ -134,7 +134,7 @@ class WebhookReceiverBase(APIView): status_api = self.get_event_status_api() kwargs = { - ('job_template_id' if isinstance(obj, JobTemplate) else 'workflow_job_template_id'): obj.id, + 'unified_job_template_id': obj.id, 'webhook_service': obj.webhook_service, 'webhook_guid': event_guid, }