1
0
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:
Ward Vandewege 2021-10-28 08:39:42 -04:00 committed by GitHub
parent 6c01b86e4c
commit b00a2729e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
}