Fixed PagerDuty notifications (#644)

This commit is contained in:
Salman 2022-08-10 17:14:27 +05:30 committed by GitHub
parent 1816c448ac
commit 782f2e602b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -329,10 +329,10 @@ class NotifyPagerDuty(NotifyBase):
payload['payload']['custom_details'][k] = v
# Prepare our URL based on region
url = PAGERDUTY_API_LOOKUP[self.region_name]
notify_url = PAGERDUTY_API_LOOKUP[self.region_name]
self.logger.debug('Pager Duty POST URL: %s (cert_verify=%r)' % (
url, self.verify_certificate,
notify_url, self.verify_certificate,
))
self.logger.debug('Pager Duty Payload: %s' % str(payload))
@ -341,7 +341,7 @@ class NotifyPagerDuty(NotifyBase):
try:
r = requests.post(
self.url,
notify_url,
data=dumps(payload),
headers=headers,
verify=self.verify_certificate,