func GetMachinesFromNodes(client *metalgo.Driver, nodes []v1.Node) ([]*models.V1MachineResponse, error) {
	var mm []*models.V1MachineResponse
	for _, n := range nodes {
		m, err := GetMachineFromNode(client, types.NodeName(n.Name))
		if err != nil {
			return nil, err
		}
		mm = append(mm, m)
	}

	return mm, nil
}
// GetMachinesFromNodes gets metal machines from K8s nodes.
GetMachinesFromNodes gets metal machines from K8s nodes.
// GetMachinesFromNodes gets metal machines from K8s nodes .
func GetMachinesFromNodes(client *metalgo.Driver, nodes []v1.Node) ([]*models.V1MachineResponse, error) {
	var mm []*models.V1MachineResponse
	for _, n := range nodes {
		m, err := GetMachineFromNode(client, types.NodeName(n.Name))
		if err != nil {
			return nil, err
		}
		mm = append(mm, m)
	}
	return mm, nil
}
func GetMachinesFromNodes ( client * metalgo . Driver , nodes [ ] v1 . Node ) ( [ ] * models . V1MachineResponse , error ) { var mm [ ] * models . V1MachineResponse for _ , n := range nodes { m , err := GetMachineFromNode ( client , types . NodeName ( n . Name ) ) if err != nil { return nil , err } mm = append ( mm , m ) } return mm , nil }
GetMachinesFromNodes gets metal machines from K8s nodes.
GetMachinesFromNodes gets metal machines from K8s nodes .