Skip to content

Commit

Permalink
fix(baremetal-agent): adjust redfish http client timeout to 60s (#21793)
Browse files Browse the repository at this point in the history
  • Loading branch information
zexi authored Dec 13, 2024
1 parent a4c19d7 commit c5747b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util/redfish/redfish.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ type SBaseRedfishClient struct {

func NewBaseRedfishClient(endpoint string, username, password string, debug bool) SBaseRedfishClient {
client := httputils.GetDefaultClient()
client.Timeout = 60 * time.Second
cli := SBaseRedfishClient{
client: client,
endpoint: endpoint,
Expand Down

0 comments on commit c5747b7

Please sign in to comment.