Allow repeated sections to hostname
This commit is contained in:
parent
ec7e11c0f7
commit
071866cbd6
|
@ -59,7 +59,7 @@ let
|
|||
hostToFqdn = host:
|
||||
if isNotNull (builtins.match "[^.]+\\.$" host) then
|
||||
host
|
||||
else if isNotNull (builtins.match "[^.]+\\.[^.]+$" host) then
|
||||
else if isNotNull (builtins.match "([^.]+\\.)+[^.]+$" host) then
|
||||
"${host}."
|
||||
else if (hasAttr host zone.hosts) then
|
||||
"${host}.${domain}."
|
||||
|
|
Loading…
Reference in New Issue