Properly escape periods
This commit is contained in:
parent
f31a63396b
commit
b46fdaa9aa
|
@ -57,9 +57,9 @@ let
|
|||
isNotNull = o: !isNull o;
|
||||
|
||||
hostToFqdn = host:
|
||||
if isNotNull (builtins.match ".+.$" host) then
|
||||
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