Skip to content

Commit 8b5720e

Browse files
authored
Merge pull request #100 from kolaente/fix/99-hetzner-image
Fix default server image for servers on hetzner cloud
2 parents 290741f + 1757727 commit 8b5720e

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

drivers/hetznercloud/create_test.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ func testInstance(instance *autoscaler.Instance) func(t *testing.T) {
6060
if got, want := instance.ID, "544037"; got != want {
6161
t.Errorf("Want instance ID %v, got %v", want, got)
6262
}
63-
if got, want := instance.Image, "ubuntu-16.04"; got != want {
63+
if got, want := instance.Image, "ubuntu-20.04"; got != want {
6464
t.Errorf("Want instance Image %v, got %v", want, got)
6565
}
6666
if got, want := instance.Name, "test"; got != want {
@@ -184,15 +184,15 @@ const respInstanceCreate = `
184184
"id": 1,
185185
"type": "system",
186186
"status": "available",
187-
"name": "ubuntu-16.04",
188-
"description": "Ubuntu 16.04",
187+
"name": "ubuntu-20.04",
188+
"description": "Ubuntu 20.04",
189189
"image_size": null,
190190
"disk_size": 5,
191191
"created": "2018-01-15T11:34:45+00:00",
192192
"created_from": null,
193193
"bound_to": null,
194194
"os_flavor": "ubuntu",
195-
"os_version": "16.04",
195+
"os_version": "20.04",
196196
"rapid_deploy": true
197197
},
198198
"iso": null,

drivers/hetznercloud/provider.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func New(opts ...Option) autoscaler.Provider {
3838
p.serverType = "cx11"
3939
}
4040
if p.image == "" {
41-
p.image = "ubuntu-16.04"
41+
p.image = "ubuntu-20.04"
4242
}
4343
if p.userdata == nil {
4444
p.userdata = userdata.T

drivers/hetznercloud/provider_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import "testing"
88

99
func TestDefaults(t *testing.T) {
1010
p := New().(*provider)
11-
if got, want := p.image, "ubuntu-16.04"; got != want {
11+
if got, want := p.image, "ubuntu-20.04"; got != want {
1212
t.Errorf("Want image %q, got %q", want, got)
1313
}
1414
if got, want := p.datacenter, ""; got != want {

0 commit comments

Comments
 (0)