Update to new cadvisor v0.48.1
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
4
vendor/github.com/google/cadvisor/client/v2/client.go
generated
vendored
4
vendor/github.com/google/cadvisor/client/v2/client.go
generated
vendored
@@ -19,7 +19,7 @@ import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"io"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
@@ -147,7 +147,7 @@ func (c *Client) httpGetResponse(postData interface{}, urlPath, infoName string)
|
||||
return nil, fmt.Errorf("received empty response for %q from %q", infoName, urlPath)
|
||||
}
|
||||
defer resp.Body.Close()
|
||||
body, err := ioutil.ReadAll(resp.Body)
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
if err != nil {
|
||||
err = fmt.Errorf("unable to read all %q from %q: %v", infoName, urlPath, err)
|
||||
return nil, err
|
||||
|
Reference in New Issue
Block a user