Skip to content

Commit b04eda8

Browse files
committed
Update all deps and linodego to 0.4.0
1 parent e7cebd4 commit b04eda8

File tree

5 files changed

+33
-33
lines changed

5 files changed

+33
-33
lines changed

Gopkg.lock

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

Gopkg.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
version = "1.0.3"
3131

3232
[[constraint]]
33-
name = "github.com/chiefy/linodego"
34-
version = "0.2.0"
33+
name = "github.com/linode/linodego"
34+
version = "0.4.0"
3535

3636
[prune]
3737
go-tests = true

driver.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import (
88
"strconv"
99
"sync"
1010

11-
"github.com/chiefy/linodego"
1211
"github.com/docker/go-plugins-helpers/volume"
1312
"github.com/libgolang/log"
13+
"github.com/linode/linodego"
1414
)
1515

1616
type linodeVolumeDriver struct {
@@ -126,7 +126,7 @@ func (driver linodeVolumeDriver) Remove(req *volume.RemoveRequest) error {
126126
}
127127

128128
// Send detach request
129-
if _, err := driver.linodeAPI.DetachVolume(context.Background(), linVol.ID); err != nil {
129+
if err := driver.linodeAPI.DetachVolume(context.Background(), linVol.ID); err != nil {
130130
return log.Err("%s", err)
131131
}
132132

@@ -162,7 +162,7 @@ func (driver linodeVolumeDriver) Mount(req *volume.MountRequest) (*volume.MountR
162162
return nil, log.Err("Error attaching volume to linode: %s", err)
163163
}
164164

165-
if err := driver.linodeAPI.WaitForVolumeLinodeID(context.Background(), linVol.ID, &attachOpts.LinodeID, 180); err != nil {
165+
if _, err := driver.linodeAPI.WaitForVolumeLinodeID(context.Background(), linVol.ID, &attachOpts.LinodeID, 180); err != nil {
166166
return nil, log.Err("Error attaching volume to linode: %s", err)
167167
}
168168
}

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ import (
66

77
"golang.org/x/oauth2"
88

9-
"github.com/chiefy/linodego"
109
"github.com/docker/go-plugins-helpers/volume"
1110
"github.com/libgolang/config"
1211
"github.com/libgolang/log"
12+
"github.com/linode/linodego"
1313
)
1414

1515
const (

utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import (
77
"path"
88
"time"
99

10-
"github.com/chiefy/linodego"
1110
"github.com/docker/go-plugins-helpers/volume"
1211
"github.com/libgolang/log"
12+
"github.com/linode/linodego"
1313
)
1414

1515
// labelToMountPoint gets the mount-point for a volume

0 commit comments

Comments
 (0)