mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 11:57:37 -02: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:
@@ -134,7 +134,7 @@ class WebhookReceiverBase(APIView):
|
|||||||
status_api = self.get_event_status_api()
|
status_api = self.get_event_status_api()
|
||||||
|
|
||||||
kwargs = {
|
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_service': obj.webhook_service,
|
||||||
'webhook_guid': event_guid,
|
'webhook_guid': event_guid,
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user