Skip to content

Commit 34f6d80

Browse files
committed
release: v0.0.9 use linodego v0.2.0
1 parent a8e0066 commit 34f6d80

File tree

3 files changed

+17
-17
lines changed

3 files changed

+17
-17
lines changed

Gopkg.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Gopkg.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
[[constraint]]
2929
name = "github.com/chiefy/linodego"
30-
version = "0.1.1"
30+
version = "0.2.0"
3131

3232
[[constraint]]
3333
name = "github.com/docker/machine"

pkg/drivers/linode/linode.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ type Driver struct {
4141

4242
const (
4343
// VERSION represents the semver version of the package
44-
VERSION = "0.0.8"
44+
VERSION = "0.0.9"
4545
defaultSSHPort = 22
4646
defaultSSHUser = "root"
4747
defaultInstanceImage = "linode/ubuntu18.04"
@@ -244,7 +244,7 @@ func (d *Driver) Create() error {
244244
SwapSize: &d.SwapSize,
245245
}
246246

247-
linode, err := client.CreateInstance(context.TODO(), &createOpts)
247+
linode, err := client.CreateInstance(context.TODO(), createOpts)
248248
if err != nil {
249249
return err
250250
}
@@ -273,7 +273,7 @@ func (d *Driver) Create() error {
273273
}
274274

275275
log.Info("Waiting for Machine Running...")
276-
if err := linodego.WaitForInstanceStatus(context.TODO(), client, d.InstanceID, linodego.InstanceRunning, 180); err != nil {
276+
if _, err := client.WaitForInstanceStatus(context.TODO(), d.InstanceID, linodego.InstanceRunning, 180); err != nil {
277277
return fmt.Errorf("wait for machine running failed: %s", err)
278278
}
279279

0 commit comments

Comments
 (0)