Skip to content

Commit

Permalink
Fix cluster machine ls output. (#313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit91 authored Aug 12, 2024
1 parent d341b5c commit 814b94c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion cmd/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -1481,7 +1481,10 @@ func (c *config) clusterMachines(args []string) error {
ms := shoot.Payload.Machines
ms = append(ms, shoot.Payload.Firewalls...)
fmt.Println("\nMachines:")
return c.listPrinter.Print(ms)

// TODO: when migrating to new table printer from metal-lib, use existing listprinter!
// return c.listPrinter.Print(ms)
return output.New().Print(ms)
}

func (c *config) clusterLogs(args []string) error {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ require (
github.com/spf13/cobra v1.8.1
github.com/spf13/viper v1.19.0
github.com/stretchr/testify v1.9.0
golang.org/x/exp v0.0.0-20240707233637-46b078467d37
golang.org/x/sync v0.7.0
gopkg.in/yaml.v3 v3.0.1
k8s.io/api v0.28.2
Expand Down Expand Up @@ -175,7 +176,6 @@ require (
go4.org/mem v0.0.0-20220726221520-4f986261bf13 // indirect
go4.org/netipx v0.0.0-20231129151722-fdeea329fbba // indirect
golang.org/x/crypto v0.25.0 // indirect
golang.org/x/exp v0.0.0-20240707233637-46b078467d37 // indirect
golang.org/x/mod v0.19.0 // indirect
golang.org/x/net v0.27.0 // indirect
golang.org/x/oauth2 v0.21.0 // indirect
Expand Down

0 comments on commit 814b94c

Please sign in to comment.