krebs-hosts-*: don't add lines without alias
This commit is contained in:
parent
bca298e1a8
commit
1242c7e255
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user