Update github.com/joyent/triton-go to the latest.
This commit is contained in:
parent
f7ced1c40d
commit
236c12c07a
|
@ -102,6 +102,7 @@ func (client *MachinesClient) GetMachine(ctx context.Context, input *GetMachineI
|
|||
}
|
||||
if response.StatusCode == http.StatusNotFound || response.StatusCode == http.StatusGone {
|
||||
return nil, &TritonError{
|
||||
StatusCode: response.StatusCode,
|
||||
Code: "ResourceNotFound",
|
||||
}
|
||||
}
|
||||
|
@ -134,6 +135,7 @@ func (client *MachinesClient) ListMachines(ctx context.Context, _ *ListMachinesI
|
|||
}
|
||||
if response.StatusCode == http.StatusNotFound {
|
||||
return nil, &TritonError{
|
||||
StatusCode: response.StatusCode,
|
||||
Code: "ResourceNotFound",
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
|
|
@ -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=",
|
||||
|
|
Loading…
Reference in New Issue