mirror of
https://github.com/juanfont/headscale.git
synced 2024-12-20 19:09:07 +01:00
Update cmd/headscale/cli/nodes.go
Co-authored-by: Kristoffer Dalby <kradalby@kradalby.no>
This commit is contained in:
parent
6c01b86e4c
commit
b00a2729e3
@ -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 New Issue
Block a user