From de0a3a7d88ff1059b7fbf611c2af11c68f65f805 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 15 Jan 2019 10:40:40 +0100 Subject: netwatch-syslog: simplify array access --- netwatch-syslog | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netwatch-syslog') diff --git a/netwatch-syslog b/netwatch-syslog index 87e9709..03aa1a5 100644 --- a/netwatch-syslog +++ b/netwatch-syslog @@ -6,7 +6,7 @@ # # manage remote logging facilities -:local Remote [ /system logging action get [ :pick [ find where target=remote ] 0 ] remote ]; +:local Remote [ /system logging action get ([ find where target=remote ]->0) remote ]; if ([ / tool netwatch get [ find where host=$Remote ] status ] = "up") do={ / system logging set disabled=no [ find where action=remote disabled=yes ]; -- cgit v1.2.3-70-g09d2