From 782f2e602b90c9b43058c977ffcc689bd3b1dfb8 Mon Sep 17 00:00:00 2001 From: Salman <2805979+FusionX9000@users.noreply.github.com> Date: Wed, 10 Aug 2022 17:14:27 +0530 Subject: [PATCH] Fixed PagerDuty notifications (#644) --- apprise/plugins/NotifyPagerDuty.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apprise/plugins/NotifyPagerDuty.py b/apprise/plugins/NotifyPagerDuty.py index 2f25bb0f..bea85636 100644 --- a/apprise/plugins/NotifyPagerDuty.py +++ b/apprise/plugins/NotifyPagerDuty.py @@ -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,