forked from zentralwerk/network
pkgs/switch-report: don't serialize vlan == null
This commit is contained in:
parent
9cb7dbc385
commit
fe9e0fea91
|
@ -51,7 +51,9 @@ let
|
|||
}${
|
||||
lib.concatStringsSep ", " (
|
||||
map (net:
|
||||
"${net} (`${toString config.site.net.${net}.vlan}`)"
|
||||
if config.site.net.${net}.vlan != null
|
||||
then "${net} (`${toString config.site.net.${net}.vlan}`)"
|
||||
else net
|
||||
) (builtins.sort (a: b:
|
||||
let
|
||||
vlanA = config.site.net.${a}.vlan;
|
||||
|
|
Loading…
Reference in New Issue
Block a user