short host shouldn't have to exist...

This commit is contained in:
niten 2023-10-07 10:03:36 -07:00
parent fed7baa20e
commit 473cc54008
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ let
hostToFqdn = host: hostToFqdn = host:
let hostChars = "[a-zA-Z0-9_-]"; let hostChars = "[a-zA-Z0-9_-]";
in if (hasAttr host zone.hosts) then in if isNotNull (builtins.match "^${hostChars}+$") then
"${host}.${domain}." "${host}.${domain}."
else if isNotNull (builtins.match "${hostChars}+\\.$" host) then else if isNotNull (builtins.match "${hostChars}+\\.$" host) then
host host