From f50d155500011e449c42d9389333a91e0d23939b Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 5 Jul 2022 13:43:50 +0200 Subject: netwatch-notify: $NetwatchNotifyHook: rename variable: $Type -> $State --- netwatch-notify | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'netwatch-notify') diff --git a/netwatch-notify b/netwatch-notify index e3f0633..112cf9e 100644 --- a/netwatch-notify +++ b/netwatch-notify @@ -21,9 +21,9 @@ :global SymbolForNotification; :local NetwatchNotifyHook do={ - :local Name [ :tostr $1 ]; - :local Type [ :tostr $2 ]; - :local Hook [ :tostr $3 ]; + :local Name [ :tostr $1 ]; + :local State [ :tostr $2 ]; + :local Hook [ :tostr $3 ]; :global LogPrintExit2; :global ValidateSyntax; @@ -32,15 +32,15 @@ :do { [ :parse $Hook ]; } on-error={ - $LogPrintExit2 warning $0 ("The " . $Type . "-hook for host " . $Name . " failed to run.") false; + $LogPrintExit2 warning $0 ("The " . $State . "-hook for host " . $Name . " failed to run.") false; :return ("The hook failed to run."); } } else={ - $LogPrintExit2 warning $0 ("The " . $Type . "-hook for host " . $Name . " failed syntax validation.") false; + $LogPrintExit2 warning $0 ("The " . $State . "-hook for host " . $Name . " failed syntax validation.") false; :return ("The hook failed syntax validation."); } - $LogPrintExit2 info $0 ("Ran hook on host " . $Name . " " . $Type . ": " . $Hook) false; + $LogPrintExit2 info $0 ("Ran hook on host " . $Name . " " . $State . ": " . $Hook) false; :return ("Ran hook:\n" . $Hook); } -- cgit v1.2.3-70-g09d2