diff --git a/go.mod b/go.mod index d478c226..1edaee03 100644 --- a/go.mod +++ b/go.mod @@ -5,6 +5,6 @@ go 1.16 require ( github.com/spf13/cobra v1.3.0 github.com/spf13/viper v1.10.1 - github.com/vultr/govultr/v2 v2.14.1 + github.com/vultr/govultr/v2 v2.14.2 golang.org/x/oauth2 v0.0.0-20211104180415-d3ed0bb246c8 ) diff --git a/go.sum b/go.sum index ef837d56..69d0dc46 100644 --- a/go.sum +++ b/go.sum @@ -348,8 +348,8 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/ github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s= github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw= github.com/tv42/httpunix v0.0.0-20150427012821-b75d8614f926/go.mod h1:9ESjWnEqriFuLhtthL60Sar/7RFoluCcXsuvEwTV5KM= -github.com/vultr/govultr/v2 v2.14.1 h1:Z4nd9mXNQ5wd63aw0MZOalFeTkJ8L6Sed3PTqagp4TA= -github.com/vultr/govultr/v2 v2.14.1/go.mod h1:JjUljQdSZx+MELCAJvZ/JH32bJotmflnsyS0NOjb8Jg= +github.com/vultr/govultr/v2 v2.14.2 h1:5O6SenNliTmcGFISSlYeCmSCiTngLXL6VM7NbvfOGTA= +github.com/vultr/govultr/v2 v2.14.2/go.mod h1:JjUljQdSZx+MELCAJvZ/JH32bJotmflnsyS0NOjb8Jg= github.com/yuin/goldmark v1.1.25/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= diff --git a/vendor/github.com/vultr/govultr/v2/CHANGELOG.md b/vendor/github.com/vultr/govultr/v2/CHANGELOG.md index 6ec9749e..02eb6f67 100644 --- a/vendor/github.com/vultr/govultr/v2/CHANGELOG.md +++ b/vendor/github.com/vultr/govultr/v2/CHANGELOG.md @@ -2,6 +2,10 @@ ## GoVultr v1 changelog is located [here](https://github.com/vultr/govultr/blob/v1/CHANGELOG.md) +## [v2.14.2](https://github.com/vultr/govultr/compare/v2.14.1..v2.14.2) (2022-03-23) +### Bug Fix +* Instances : restore support requestBody [206](https://github.com/vultr/govultr/pull/206) Thanks @andrake81 + ## [v2.14.1](https://github.com/vultr/govultr/compare/v2.14.0..v2.14.1) (2022-02-02) ### Enhancement * Improved retry error response [204](https://github.com/vultr/govultr/pull/204) diff --git a/vendor/github.com/vultr/govultr/v2/govultr.go b/vendor/github.com/vultr/govultr/v2/govultr.go index b0913678..f1846ac7 100644 --- a/vendor/github.com/vultr/govultr/v2/govultr.go +++ b/vendor/github.com/vultr/govultr/v2/govultr.go @@ -16,7 +16,7 @@ import ( ) const ( - version = "2.14.1" + version = "2.14.2" defaultBase = "https://api.vultr.com" userAgent = "govultr/" + version rateLimit = 500 * time.Millisecond diff --git a/vendor/github.com/vultr/govultr/v2/instance.go b/vendor/github.com/vultr/govultr/v2/instance.go index c47407b8..3312d47a 100644 --- a/vendor/github.com/vultr/govultr/v2/instance.go +++ b/vendor/github.com/vultr/govultr/v2/instance.go @@ -436,7 +436,7 @@ func (i *InstanceServiceHandler) MassReboot(ctx context.Context, instanceList [] func (i *InstanceServiceHandler) Restore(ctx context.Context, instanceID string, restoreReq *RestoreReq) error { uri := fmt.Sprintf("%s/%s/restore", instancePath, instanceID) - req, err := i.client.NewRequest(ctx, http.MethodPost, uri, nil) + req, err := i.client.NewRequest(ctx, http.MethodPost, uri, restoreReq) if err != nil { return err } diff --git a/vendor/modules.txt b/vendor/modules.txt index cf0c8441..6922f0cd 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -49,7 +49,7 @@ github.com/spf13/viper/internal/encoding/toml github.com/spf13/viper/internal/encoding/yaml # github.com/subosito/gotenv v1.2.0 github.com/subosito/gotenv -# github.com/vultr/govultr/v2 v2.14.1 +# github.com/vultr/govultr/v2 v2.14.2 ## explicit github.com/vultr/govultr/v2 # golang.org/x/net v0.0.0-20210813160813-60bc85c4be6d