Update signl4.py

pull/1374/head
Ron 2025-07-30 12:47:48 +02:00
parent 71650b141e
commit 777625457f
1 changed files with 11 additions and 7 deletions

View File

@ -102,9 +102,15 @@ class NotifySIGNL4(NotifyBase):
},
})
def __init__(self, secret, service=None, location=None,
alerting_scenario=None, filtering=None,
external_id=None, status=None, **kwargs):
def __init__(self,
secret,
service=None,
location=None,
alerting_scenario=None,
filtering=None,
external_id=None,
status=None,
**kwargs):
"""
Initialize SIGNL4 Object
"""
@ -242,9 +248,7 @@ class NotifySIGNL4(NotifyBase):
"""
# Define any URL parameters
params = {
"region": "none",
}
params = {}
if self.service is not None:
params["service"] = self.service
@ -267,7 +271,7 @@ class NotifySIGNL4(NotifyBase):
# Extend our parameters
params.update(self.url_parameters(privacy=privacy, *args, **kwargs))
url = "{schema}://{secret}/"
url = "{schema}://{secret}"
return url.format(
schema=self.secure_protocol,