From f90c59e4fb4ce7d7b71ccfd01755b7b7212fc9d1 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 5 Mar 2020 08:15:36 +0100 Subject: netwatch-notify: properly initialize default values --- netwatch-notify | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/netwatch-notify b/netwatch-notify index df13f4f..04e3d30 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -18,7 +18,7 @@ :local HostName ([ $ParseKeyValueStore ($HostVal->"comment") ]->"hostname"); :if ([ :typeof ($NetwatchNotify->$HostName) ] = "nothing") do={ - :set ($NetwatchNotify->$HostName) [ :toarray "" ]; + :set ($NetwatchNotify->$HostName) { "count"=0; "notified"=false }; } :if ($HostVal->"status" = "up") do={ -- cgit v1.2.3-54-g00ecf