`.` isn't liberal enough
This commit is contained in:
parent
b46fdaa9aa
commit
28af343752
|
@ -57,9 +57,9 @@ let
|
||||||
isNotNull = o: !isNull o;
|
isNotNull = o: !isNull o;
|
||||||
|
|
||||||
hostToFqdn = host:
|
hostToFqdn = host:
|
||||||
if isNotNull (builtins.match ".+\\.$" host) then
|
if isNotNull (builtins.match "[^.]+\\.$" host) then
|
||||||
host
|
host
|
||||||
else if isNotNull (builtins.match ".+\\..+$" host) then
|
else if isNotNull (builtins.match "[^.]+\\[^.]+$" host) then
|
||||||
"${host}."
|
"${host}."
|
||||||
else if (hasAttr host zone.hosts) then
|
else if (hasAttr host zone.hosts) then
|
||||||
"${host}.${domain}."
|
"${host}.${domain}."
|
||||||
|
|
Loading…
Reference in New Issue