mirror of
https://github.com/caronc/apprise.git
synced 2025-06-21 10:17:46 +02: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
|
payload['payload']['custom_details'][k] = v
|
||||||
|
|
||||||
# Prepare our URL based on region
|
# 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)' % (
|
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))
|
self.logger.debug('Pager Duty Payload: %s' % str(payload))
|
||||||
|
|
||||||
@ -341,7 +341,7 @@ class NotifyPagerDuty(NotifyBase):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
r = requests.post(
|
r = requests.post(
|
||||||
self.url,
|
notify_url,
|
||||||
data=dumps(payload),
|
data=dumps(payload),
|
||||||
headers=headers,
|
headers=headers,
|
||||||
verify=self.verify_certificate,
|
verify=self.verify_certificate,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user