diff options
author | tv <tv@krebsco.de> | 2016-11-11 01:50:59 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2016-11-11 01:50:59 +0100 |
commit | ae73660522fb8a02a86eaa7124285a3aaa3cbb14 (patch) | |
tree | 6d21d5a212850196863dc14b79a296d09d659948 /krebs/3modules | |
parent | a125dad5a88a5d30acb061dad36be07aadf3d28a (diff) |
krebs: no extraHosts w/o aliases #2
Diffstat (limited to 'krebs/3modules')
-rw-r--r-- | krebs/3modules/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/krebs/3modules/default.nix b/krebs/3modules/default.nix index e6ad449fa..82ede952d 100644 --- a/krebs/3modules/default.nix +++ b/krebs/3modules/default.nix @@ -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 )); |