It's not a fuction...

This commit is contained in:
niten 2023-11-03 12:55:52 -07:00
parent db38ba91af
commit a7ea67fedb
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ let
ptrEntry = ip: hostname: "#{ip} IN PTR ${hostname}."; ptrEntry = ip: hostname: "#{ip} IN PTR ${hostname}.";
getHostname = n: getHostname = n:
if hasAttr n networkHostsByComponent then if hasAttr n networkHostsByComponent then
networkHostByComponent n networkHostsByComponent."${n}"
else else
"unassigned-${n}.${domain}"; "unassigned-${n}.${domain}";
minIp = toInt (getLastIpComponent (networkMinIp network)); minIp = toInt (getLastIpComponent (networkMinIp network));