mirror of
https://github.com/ansible/awx.git
synced 2026-01-18 13:11:19 -03:30
Check for the existance of a UnifiedJobTemplate with the same webhook GUID
instead of trying (incorrectly) to be specific about the JT/WFJT type.
This commit is contained in:
parent
204c05aa3b
commit
d549877ebd
@ -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,
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user