Skip to content

Commit 15ecf61

Browse files
committed
avoid mentioning instance default distro
1 parent 9bfd02e commit 15ecf61

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
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: "",

0 commit comments

Comments
 (0)