krebs: no extraHosts w/o aliases #2
This commit is contained in:
parent
a125dad5a8
commit
ae73660522
@ -130,7 +130,9 @@ let
|
|||||||
shorts = let s = ".${cfg.search-domain}"; in
|
shorts = let s = ".${cfg.search-domain}"; in
|
||||||
map (removeSuffix s) (filter (hasSuffix s) longs);
|
map (removeSuffix s) (filter (hasSuffix s) longs);
|
||||||
in
|
in
|
||||||
map (addr: "${addr} ${toString aliases}") net.addrs
|
optionals
|
||||||
|
(aliases != [])
|
||||||
|
(map (addr: "${addr} ${toString aliases}") net.addrs)
|
||||||
) (filterAttrs (name: host: host.aliases != []) host.nets)
|
) (filterAttrs (name: host: host.aliases != []) host.nets)
|
||||||
) cfg.hosts
|
) cfg.hosts
|
||||||
));
|
));
|
||||||
|
Loading…
Reference in New Issue
Block a user