mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-29 18:33:05 +00:00
Fix color for current namespace in nodes command
This commit is contained in:
parent
26718e8308
commit
a249d3fe39
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue