diff options
author | tv <tv@krebsco.de> | 2019-02-02 09:22:06 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2019-02-02 09:22:06 +0100 |
commit | 1242c7e25520580e00a2fabf695fb895657144f0 (patch) | |
tree | 5a921bc3217dec636635ac558a66a54e3af9d7c2 /krebs/3modules | |
parent | bca298e1a8582f5704e1e154ead6d1f866ac3206 (diff) |
krebs-hosts-*: don't add lines without alias
Diffstat (limited to 'krebs/3modules')
-rw-r--r-- | krebs/3modules/hosts.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/krebs/3modules/hosts.nix b/krebs/3modules/hosts.nix index 3d572c04d..7fe01a769 100644 --- a/krebs/3modules/hosts.nix +++ b/krebs/3modules/hosts.nix @@ -42,7 +42,7 @@ in { # hostNetAliases : host -> { ${netname} : [addrAliases] } hostNetAliases = host: - mapAttrs (_: net: filter (x: x.name != null) [ + mapAttrs (_: net: filter (x: x.name != null && x.value != []) [ { name = net.ip4.addr or null; value = net.aliases; } { name = net.ip6.addr or null; value = net.aliases; } ]) host.nets; |