Skip to content

Commit 3cef8ed

Browse files
authored
Merge pull request #229 from civo/random-distro
avoid mentioning instance default distro
2 parents 9bfd02e + 988a74c commit 3cef8ed

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

instance.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -209,11 +209,6 @@ func (c *Client) NewInstanceConfig() (*InstanceConfig, error) {
209209
return nil, decodeError(err)
210210
}
211211

212-
diskimage, err := c.GetMostRecentDistro("ubuntu")
213-
if err != nil {
214-
return nil, decodeError(err)
215-
}
216-
217212
return &InstanceConfig{
218213
Count: 1,
219214
Hostname: utils.RandomName(),
@@ -222,7 +217,6 @@ func (c *Client) NewInstanceConfig() (*InstanceConfig, error) {
222217
Region: c.Region,
223218
PublicIPRequired: "true",
224219
NetworkID: network.ID,
225-
TemplateID: diskimage.ID,
226220
SnapshotID: "",
227221
InitialUser: "civo",
228222
SSHKeyID: "",

instance_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,6 @@ func TestNewInstanceConfig(t *testing.T) {
124124
if got.NetworkID != "1" {
125125
t.Errorf("Expected %s, got %s", "1", got.NetworkID)
126126
}
127-
if got.TemplateID != "77bea4dd-bfd4-492c-823d-f92eb6dd962d" {
128-
t.Errorf("Expected %s, got %s", "77bea4dd-bfd4-492c-823d-f92eb6dd962d", got.TemplateID)
129-
}
130127
if got.Count != 1 {
131128
t.Errorf("Expected %d, got %d", 1, got.Count)
132129
}

0 commit comments

Comments
 (0)