1
0
mirror of https://github.com/juanfont/headscale.git synced 2024-12-20 19:09:07 +01:00

Fix color for current namespace in nodes command

This commit is contained in:
Kristoffer Dalby 2021-11-07 08:58:03 +00:00
parent 26718e8308
commit a249d3fe39

View File

@ -350,7 +350,7 @@ func nodesToPtables(currentNamespace string, machines []*v1.Machine) (pterm.Tabl
} }
var namespace string var namespace string
if currentNamespace == machine.Namespace.Name { if currentNamespace == "" || (currentNamespace == machine.Namespace.Name) {
namespace = pterm.LightMagenta(machine.Namespace.Name) namespace = pterm.LightMagenta(machine.Namespace.Name)
} else { } else {
// Shared into this namespace // Shared into this namespace