mirror of
https://github.com/ansible/awx.git
synced 2026-01-17 20:51:21 -03:30
Change the webhook post-back payload to use the job UI url
This commit is contained in:
parent
ac34b24868
commit
204c05aa3b
@ -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 = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user