aboutsummaryrefslogtreecommitdiffstats
path: root/collect-wireless-mac.template
diff options
context:
space:
mode:
Diffstat (limited to 'collect-wireless-mac.template')
-rw-r--r--collect-wireless-mac.template2
1 files changed, 1 insertions, 1 deletions
diff --git a/collect-wireless-mac.template b/collect-wireless-mac.template
index bfd0438..5a969b8 100644
--- a/collect-wireless-mac.template
+++ b/collect-wireless-mac.template
@@ -19,7 +19,7 @@
:foreach RegTbl in=[ / %PATH% registration-table find ] do={
:local Mac [ / %PATH% registration-table get $RegTbl mac-address ];
- :local AccessList [ :pick [ / %PATH% access-list find where mac-address=$Mac ] 0 ];
+ :local AccessList ([ / %PATH% access-list find where mac-address=$Mac ]->0);
:if ([ :len $AccessList ] = 0) do={
:local HostName "no dhcp lease";
:local Address "no dhcp lease";