aboutsummaryrefslogtreecommitdiffstats
path: root/dhcp-lease-comment.local
diff options
context:
space:
mode:
Diffstat (limited to 'dhcp-lease-comment.local')
-rw-r--r--dhcp-lease-comment.local2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp-lease-comment.local b/dhcp-lease-comment.local
index 98c11cc..9e2f9d8 100644
--- a/dhcp-lease-comment.local
+++ b/dhcp-lease-comment.local
@@ -10,7 +10,7 @@
:local MacAddress [ / ip dhcp-server lease get $Lease mac-address ];
:local OldComment [ / ip dhcp-server lease get $Lease comment ];
:local NewComment;
- :local AccessList [ :pick [ / interface wireless access-list find where mac-address=$MacAddress ] 0 ];
+ :local AccessList ([ / interface wireless access-list find where mac-address=$MacAddress ]->0);
:if ([ :len $AccessList ] > 0) do={
:set NewComment [ / interface wireless access-list get $AccessList comment ];
}