Commit de0a3a7d authored by Christian Hesse's avatar Christian Hesse

netwatch-syslog: simplify array access

parent 1ca1b48b
......@@ -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 ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment