mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-07 10:41:57 -07:00
fixing issue #3 - webhook
This commit is contained in:
@@ -51,7 +51,7 @@ def send (msg: noti_struc):
|
|||||||
# execute CURL call
|
# execute CURL call
|
||||||
try:
|
try:
|
||||||
# try runnning a subprocess
|
# try runnning a subprocess
|
||||||
mylog('debug', '[send_webhook] curlParams: '+ curlParams)
|
mylog('debug', ['[send_webhook] curlParams: ', curlParams])
|
||||||
p = subprocess.Popen(curlParams, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
p = subprocess.Popen(curlParams, stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
|
||||||
|
|
||||||
stdout, stderr = p.communicate()
|
stdout, stderr = p.communicate()
|
||||||
|
|||||||
Reference in New Issue
Block a user