Update github.com/joyent/triton-go to the latest.

This commit is contained in:
Sean Chittenden 2017-05-09 14:20:30 -07:00
parent f7ced1c40d
commit 236c12c07a
No known key found for this signature in database
GPG Key ID: 4EBC9DC16C2E5E16
2 changed files with 8 additions and 6 deletions

View File

@ -102,6 +102,7 @@ func (client *MachinesClient) GetMachine(ctx context.Context, input *GetMachineI
} }
if response.StatusCode == http.StatusNotFound || response.StatusCode == http.StatusGone { if response.StatusCode == http.StatusNotFound || response.StatusCode == http.StatusGone {
return nil, &TritonError{ return nil, &TritonError{
StatusCode: response.StatusCode,
Code: "ResourceNotFound", Code: "ResourceNotFound",
} }
} }
@ -134,6 +135,7 @@ func (client *MachinesClient) ListMachines(ctx context.Context, _ *ListMachinesI
} }
if response.StatusCode == http.StatusNotFound { if response.StatusCode == http.StatusNotFound {
return nil, &TritonError{ return nil, &TritonError{
StatusCode: response.StatusCode,
Code: "ResourceNotFound", Code: "ResourceNotFound",
} }
} }
@ -249,7 +251,7 @@ func (client *MachinesClient) DeleteMachine(ctx context.Context, input *DeleteMa
if response.Body != nil { if response.Body != nil {
defer response.Body.Close() defer response.Body.Close()
} }
if response.StatusCode == http.StatusNotFound { if response.StatusCode == http.StatusNotFound || response.StatusCode == http.StatusGone {
return nil return nil
} }
if err != nil { if err != nil {

6
vendor/vendor.json vendored
View File

@ -520,10 +520,10 @@
"revision": "c01cf91b011868172fdcd9f41838e80c9d716264" "revision": "c01cf91b011868172fdcd9f41838e80c9d716264"
}, },
{ {
"checksumSHA1": "3yw6Wr66v4WrQyY2hYveEmiFadM=", "checksumSHA1": "cdoXZmgAhucjxu9V0xuAwwOoN0U=",
"path": "github.com/joyent/triton-go", "path": "github.com/joyent/triton-go",
"revision": "16cef4c2d78ba1d3bf89af75e93ae2dec6e56634", "revision": "97ccd9f6c0c0652cf87997bcb01955e0329cd37e",
"revisionTime": "2017-05-04T20:45:05Z" "revisionTime": "2017-05-09T20:29:43Z"
}, },
{ {
"checksumSHA1": "QzUqkCSn/ZHyIK346xb9V6EBw9U=", "checksumSHA1": "QzUqkCSn/ZHyIK346xb9V6EBw9U=",