This reverts commit 6dd1bb9eb08dc144bc172b0052df7c3904896e56, reversing
changes made to 23aec9d7fcaa72db026c042046102b381e2e9d27.
Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
| ... | ... |
@@ -2080,9 +2080,7 @@ func (cli *DockerCli) call(method, path string, data interface{}, passAuthInfo b
|
| 2080 | 2080 |
return nil, -1, err |
| 2081 | 2081 |
} |
| 2082 | 2082 |
|
| 2083 |
- if resp.StatusCode == 404 {
|
|
| 2084 |
- return nil, resp.StatusCode, fmt.Errorf("Error: request for %s returned 404 Not Found for the api version", req.URL)
|
|
| 2085 |
- } else if resp.StatusCode < 200 || resp.StatusCode >= 400 {
|
|
| 2083 |
+ if resp.StatusCode < 200 || resp.StatusCode >= 400 {
|
|
| 2086 | 2084 |
body, err := ioutil.ReadAll(resp.Body) |
| 2087 | 2085 |
if err != nil {
|
| 2088 | 2086 |
return nil, -1, err |