diff --git a/cmd/ocm/list/machinepool/cmd.go b/cmd/ocm/list/machinepool/cmd.go index 9d85c534..760f14c7 100644 --- a/cmd/ocm/list/machinepool/cmd.go +++ b/cmd/ocm/list/machinepool/cmd.go @@ -99,15 +99,7 @@ func run(cmd *cobra.Command, argv []string) error { writer := tabwriter.NewWriter(os.Stdout, 0, 0, 2, ' ', 0) fmt.Fprintf(writer, "ID\tAUTOSCALING\tREPLICAS\tINSTANCE TYPE\tLABELS\t\tTAINTS\t\tAVAILABILITY ZONES\n") - fmt.Fprintf(writer, "%s\t%s\t%s\t%s\t%s\t\t%s\t\t%s\n", - "default", - printAutoscaling(cluster.Nodes().AutoscaleCompute()), - printReplicas(cluster.Nodes().AutoscaleCompute(), cluster.Nodes().Compute()), - cluster.Nodes().ComputeMachineType().ID(), - printLabels(cluster.Nodes().ComputeLabels()), - "", - printAZ(cluster.Nodes().AvailabilityZones()), - ) + for _, machinePool := range machinePools { fmt.Fprintf(writer, "%s\t%s\t%s\t%s\t%s\t\t%s\t\t%s\n", machinePool.ID(),