mirror of
https://github.com/caronc/apprise.git
synced 2025-01-19 04:19:32 +01:00
Fixed PagerDuty notifications (#644)
This commit is contained in:
parent
1816c448ac
commit
782f2e602b
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user