mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2026-02-18 13:14:15 +01:00
Keinen Default für priority
Ist kein Wert oder ein anderer Wert als true/false für priority gesetzt, wird ein Divera-Alarm ausgelassen.
This commit is contained in:
parent
0dfe1ee89c
commit
ddbddbbcdd
|
|
@ -83,7 +83,7 @@ def run(typ, freq, data):
|
||||||
elif data["function"] == '4':
|
elif data["function"] == '4':
|
||||||
priority = globalVars.config.get("Divera", "SubD")
|
priority = globalVars.config.get("Divera", "SubD")
|
||||||
else:
|
else:
|
||||||
priority = 'false'
|
priority = ''
|
||||||
|
|
||||||
text = globalVars.config.get("Divera", "poc_text")
|
text = globalVars.config.get("Divera", "poc_text")
|
||||||
title = globalVars.config.get("Divera", "poc_title")
|
title = globalVars.config.get("Divera", "poc_title")
|
||||||
|
|
@ -109,7 +109,8 @@ def run(typ, freq, data):
|
||||||
|
|
||||||
# check priority value
|
# check priority value
|
||||||
if (priority != 'false') and (priority != 'true'):
|
if (priority != 'false') and (priority != 'true'):
|
||||||
priority = 'false'
|
logging.info("No Priority set for type '%s'! Skipping Divera-Alarm!", typ)
|
||||||
|
return
|
||||||
|
|
||||||
# start the connection
|
# start the connection
|
||||||
conn = httplib.HTTPSConnection("www.divera247.com:443")
|
conn = httplib.HTTPSConnection("www.divera247.com:443")
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue