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
|
||||
map (removeSuffix s) (filter (hasSuffix s) longs);
|
||||
in
|
||||
map (addr: "${addr} ${toString aliases}") net.addrs
|
||||
optionals
|
||||
(aliases != [])
|
||||
(map (addr: "${addr} ${toString aliases}") net.addrs)
|
||||
) (filterAttrs (name: host: host.aliases != []) host.nets)
|
||||
) cfg.hosts
|
||||
));
|
||||
|
Loading…
Reference in New Issue
Block a user