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