diff --git a/vendor/github.com/joyent/triton-go/machines.go b/vendor/github.com/joyent/triton-go/machines.go index 64f0d7baf..aba5a984a 100644 --- a/vendor/github.com/joyent/triton-go/machines.go +++ b/vendor/github.com/joyent/triton-go/machines.go @@ -102,7 +102,8 @@ func (client *MachinesClient) GetMachine(ctx context.Context, input *GetMachineI } if response.StatusCode == http.StatusNotFound || response.StatusCode == http.StatusGone { return nil, &TritonError{ - Code: "ResourceNotFound", + StatusCode: response.StatusCode, + Code: "ResourceNotFound", } } if err != nil { @@ -134,7 +135,8 @@ func (client *MachinesClient) ListMachines(ctx context.Context, _ *ListMachinesI } if response.StatusCode == http.StatusNotFound { return nil, &TritonError{ - Code: "ResourceNotFound", + StatusCode: response.StatusCode, + Code: "ResourceNotFound", } } if err != nil { @@ -249,7 +251,7 @@ func (client *MachinesClient) DeleteMachine(ctx context.Context, input *DeleteMa if response.Body != nil { defer response.Body.Close() } - if response.StatusCode == http.StatusNotFound { + if response.StatusCode == http.StatusNotFound || response.StatusCode == http.StatusGone { return nil } if err != nil { diff --git a/vendor/vendor.json b/vendor/vendor.json index 21745eae4..c0c5bb18c 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -520,10 +520,10 @@ "revision": "c01cf91b011868172fdcd9f41838e80c9d716264" }, { - "checksumSHA1": "3yw6Wr66v4WrQyY2hYveEmiFadM=", + "checksumSHA1": "cdoXZmgAhucjxu9V0xuAwwOoN0U=", "path": "github.com/joyent/triton-go", - "revision": "16cef4c2d78ba1d3bf89af75e93ae2dec6e56634", - "revisionTime": "2017-05-04T20:45:05Z" + "revision": "97ccd9f6c0c0652cf87997bcb01955e0329cd37e", + "revisionTime": "2017-05-09T20:29:43Z" }, { "checksumSHA1": "QzUqkCSn/ZHyIK346xb9V6EBw9U=",