netwatch-syslog: simplify array access

This commit is contained in:
Christian Hesse 2019-01-15 10:40:40 +01:00
parent 1ca1b48bcd
commit de0a3a7d88

View file

@ -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 ];