aboutsummaryrefslogtreecommitdiffstats
path: root/dhcp-to-dns
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2018-11-09 21:32:01 +0100
committerGravatar Christian Hesse <mail@eworm.de>2018-11-09 21:32:01 +0100
commit3e9c5a3b6db319f0efeba18114f0255e6afe8034 (patch)
tree15bf1a49305a21402e720beba51db93a97ed451a /dhcp-to-dns
parent313cc2913a6d9ceaf5ce10e384f67c56d8a7c569 (diff)
dhcp-to-dns: use 'print count-only'
Diffstat (limited to 'dhcp-to-dns')
-rw-r--r--dhcp-to-dns2
1 files changed, 1 insertions, 1 deletions
diff --git a/dhcp-to-dns b/dhcp-to-dns
index 6b97b56..c7b669e 100644
--- a/dhcp-to-dns
+++ b/dhcp-to-dns
@@ -53,7 +53,7 @@
:set dnsip [ / ip dns static get $dnsnode address ];
:local leases [ / ip dhcp-server lease find where host-name=$hostname dynamic=yes ];
- :local hostnamecount [ :len [ / ip dhcp-server lease find where host-name=$hostname dynamic=yes ] ];
+ :local hostnamecount [ / ip dhcp-server lease print count-only where host-name=$hostname dynamic=yes ];
:if ( $hostnamecount > 1) do={
:foreach j,lease in=$leases do={
:if ($j + 1 = $hostnamecount) do={