Skip to content

Commit

Permalink
Update config_script.go
Browse files Browse the repository at this point in the history
ioutil has been deprecated.
  • Loading branch information
twr14152 authored May 10, 2024
1 parent 1f40648 commit a92b3dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arista/http_client/config_script.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"crypto/tls"
"encoding/json"
"fmt"
"io/ioutil"
"io"
"net/http"
"os"
"strings"
Expand Down Expand Up @@ -63,7 +63,7 @@ func main() {
resp := connect(url, cmds, "json")
fmt.Println(resp)
if resp.StatusCode == http.StatusOK {
bodyBytes, err := ioutil.ReadAll(resp.Body)
bodyBytes, err := io.ReadAll(resp.Body)
if err != nil {
fmt.Println(err)
}
Expand Down

0 comments on commit a92b3dc

Please sign in to comment.