mirror of
https://github.com/ansible/awx.git
synced 2026-05-08 01:47:35 -02:30
Change the webhook post-back payload to use the job UI url
This commit is contained in:
@@ -3,7 +3,6 @@ from copy import copy, deepcopy
|
|||||||
import json
|
import json
|
||||||
import logging
|
import logging
|
||||||
import os
|
import os
|
||||||
from urllib.parse import urljoin
|
|
||||||
|
|
||||||
import requests
|
import requests
|
||||||
|
|
||||||
@@ -606,7 +605,7 @@ class WebhookMixin(models.Model):
|
|||||||
data = {
|
data = {
|
||||||
'state': statuses[status],
|
'state': statuses[status],
|
||||||
'context': 'ansible/awx' if license_type == 'open' else 'ansible/tower',
|
'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]
|
k, v = service_header[self.webhook_service]
|
||||||
headers = {
|
headers = {
|
||||||
|
|||||||
Reference in New Issue
Block a user