diff options
author | Christian Hesse <mail@eworm.de> | 2019-01-15 10:34:22 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-01-15 10:34:22 +0100 |
commit | cedc1785953abe6fbaf4ca59fe373d4d261e925e (patch) | |
tree | e33d94b1919822c931fd7f17c85efb210784cfad /dhcp-lease-comment.local | |
parent | 07973066c967a64aa3fc1a9a8472955a0fcc7569 (diff) |
dhcp-lease-comment: simplify array access
Diffstat (limited to 'dhcp-lease-comment.local')
-rw-r--r-- | dhcp-lease-comment.local | 2 |
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 ]; } |