Skip to content

Commit

Permalink
Replace deprecated ioutil in dl380 exporter.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferKaiser21 authored Mar 4, 2024
1 parent 5433558 commit 5f13e85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hpe/dl380/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"crypto/tls"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net"
"net/http"
"net/url"
Expand Down Expand Up @@ -542,7 +542,7 @@ func getDriveEndpoint(url, host string, client *retryablehttp.Client) (GenericDr
}
}

body, err := ioutil.ReadAll(resp.Body)
body, err := io.ReadAll(resp.Body)
if err != nil {
return drive, fmt.Errorf("Error reading Response Body - " + err.Error())
}
Expand Down

0 comments on commit 5f13e85

Please sign in to comment.