mirror of
https://github.com/ansible/awx.git
synced 2026-01-13 02:50:02 -03:30
Post the job or workflow url to the webhook service as part of the status
This commit is contained in:
parent
ffe89820e3
commit
ac34b24868
@ -3,6 +3,7 @@ from copy import copy, deepcopy
|
||||
import json
|
||||
import logging
|
||||
import os
|
||||
from urllib.parse import urljoin
|
||||
|
||||
import requests
|
||||
|
||||
@ -605,6 +606,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()),
|
||||
}
|
||||
k, v = service_header[self.webhook_service]
|
||||
headers = {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user