Change the webhook post-back payload to use the job UI url

This commit is contained in:
Jeff Bradberry 2019-09-30 11:55:40 -04:00
parent ac34b24868
commit 204c05aa3b

View File

@ -3,7 +3,6 @@ from copy import copy, deepcopy
import json
import logging
import os
from urllib.parse import urljoin
import requests
@ -606,7 +605,7 @@ class WebhookMixin(models.Model):
data = {
'state': statuses[status],
'context': 'ansible/awx' if license_type == 'open' else 'ansible/tower',
'target_url': urljoin(settings.TOWER_URL_BASE, self.get_absolute_url()),
'target_url': self.get_ui_url(),
}
k, v = service_header[self.webhook_service]
headers = {