aboutsummaryrefslogtreecommitdiffstats
path: root/netwatch-syslog
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-01-15 10:40:40 +0100
committerGravatar Christian Hesse <mail@eworm.de>2019-01-15 10:40:40 +0100
commitde0a3a7d88ff1059b7fbf611c2af11c68f65f805 (patch)
tree5cf1fdafbc381c034fda716df34873bb4af9ea10 /netwatch-syslog
parent1ca1b48bcdf37f156180685e3603a3a7f15a5c23 (diff)
netwatch-syslog: simplify array access
Diffstat (limited to 'netwatch-syslog')
-rw-r--r--netwatch-syslog2
1 files changed, 1 insertions, 1 deletions
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 ];