mirror of
https://github.com/juanfont/headscale.git
synced 2026-10-17 12:15:22 +09:00
Fix color for current namespace in nodes command
This commit is contained in:
1 parent
26718e8308
commit
a249d3fe39
1 file changed
+1
-1
@@ -350,7 +350,7 @@ func nodesToPtables(currentNamespace string, machines []*v1.Machine) (pterm.Tabl
|
||||
}
|
||||
|
||||
var namespace string
|
||||
if currentNamespace == machine.Namespace.Name {
|
||||
if currentNamespace == "" || (currentNamespace == machine.Namespace.Name) {
|
||||
namespace = pterm.LightMagenta(machine.Namespace.Name)
|
||||
} else {
|
||||
// Shared into this namespace
|
||||
|
||||
Reference in new issue
Block a user