From cedc1785953abe6fbaf4ca59fe373d4d261e925e Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Tue, 15 Jan 2019 10:34:22 +0100 Subject: dhcp-lease-comment: simplify array access --- dhcp-lease-comment.capsman | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dhcp-lease-comment.capsman') diff --git a/dhcp-lease-comment.capsman b/dhcp-lease-comment.capsman index 5e6e325..eda04e4 100644 --- a/dhcp-lease-comment.capsman +++ b/dhcp-lease-comment.capsman @@ -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 [ / caps-man access-list find where mac-address=$MacAddress ] 0 ]; + :local AccessList ([ / caps-man access-list find where mac-address=$MacAddress ]->0); :if ([ :len $AccessList ] > 0) do={ :set NewComment [ / caps-man access-list get $AccessList comment ]; } -- cgit v1.2.3-70-g09d2