Skip to content

Commit

Permalink
Update hcloud-go to 1.22.0 and expose correct disk size for resized w…
Browse files Browse the repository at this point in the history
…ithout disk server (#269)
  • Loading branch information
LKaemmerling authored Aug 26, 2020
1 parent 5049b00 commit d5d2fec
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cli/server_describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func serverDescribeText(cli *CLI, server *hcloud.Server) error {
fmt.Printf(" Cores:\t%d\n", server.ServerType.Cores)
fmt.Printf(" CPU Type:\t%s\n", server.ServerType.CPUType)
fmt.Printf(" Memory:\t%v GB\n", server.ServerType.Memory)
fmt.Printf(" Disk:\t\t%d GB\n", server.ServerType.Disk)
fmt.Printf(" Disk:\t\t%d GB\n", server.PrimaryDiskSize)
fmt.Printf(" Storage Type:\t%s\n", server.ServerType.StorageType)

fmt.Printf("Public Net:\n")
Expand Down
3 changes: 2 additions & 1 deletion cli/server_list.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ func runServerList(cli *CLI, cmd *cobra.Command, args []string) error {
Delete: server.Protection.Delete,
Rebuild: server.Protection.Rebuild,
},
Labels: server.Labels,
Labels: server.Labels,
PrimaryDiskSize: server.PrimaryDiskSize,
}
if server.Image != nil {
serverImage := imageToSchema(*server.Image)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ require (
github.com/cheggaaa/pb/v3 v3.0.5
github.com/dustin/go-humanize v1.0.0
github.com/fatih/structs v1.1.0
github.com/hetznercloud/hcloud-go v1.21.1
github.com/hetznercloud/hcloud-go v1.22.0
github.com/pelletier/go-toml v1.8.0
github.com/spf13/cobra v1.0.0
github.com/spf13/pflag v1.0.5
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmg
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
github.com/hetznercloud/hcloud-go v1.21.1 h1:LWNozxiZhKmeMqYbAS7KsAcPcxg47afCnTeLKmN+n7w=
github.com/hetznercloud/hcloud-go v1.21.1/go.mod h1:xng8lbDUg+xM1dgc0yGHX5EeqbwIq7UYlMWMTx3SQVg=
github.com/hetznercloud/hcloud-go v1.22.0 h1:CC0jwkaBzwP4ObFE0sdJBTvGh5DE9kB/tuDETnRfOik=
github.com/hetznercloud/hcloud-go v1.22.0/go.mod h1:xng8lbDUg+xM1dgc0yGHX5EeqbwIq7UYlMWMTx3SQVg=
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
Expand Down

0 comments on commit d5d2fec

Please sign in to comment.