mirror of
https://github.com/juanfont/headscale.git
synced 2024-11-26 08:53:05 +00:00
Update cmd/headscale/cli/nodes.go
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
This commit is contained in:
parent
6c01b86e4c
commit
b00a2729e3
1 changed files with 2 additions and 2 deletions
|
@ -121,8 +121,8 @@ var listNodesCmd = &cobra.Command{
|
|||
}
|
||||
|
||||
var allMachines []headscale.Machine
|
||||
for _, n := range namespaces {
|
||||
machines, err := h.ListMachinesInNamespace(n.Name)
|
||||
for _, namespace := range namespaces {
|
||||
machines, err := h.ListMachinesInNamespace(namespace.Name)
|
||||
if err != nil {
|
||||
log.Fatalf("Error fetching machines: %s", err)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue