From c5747b79919983f03de973123a451dfaa6136872 Mon Sep 17 00:00:00 2001 From: Zexi Li Date: Fri, 13 Dec 2024 10:39:44 +0800 Subject: [PATCH] fix(baremetal-agent): adjust redfish http client timeout to 60s (#21793) --- pkg/util/redfish/redfish.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/util/redfish/redfish.go b/pkg/util/redfish/redfish.go index b52961f196b..26395e81260 100644 --- a/pkg/util/redfish/redfish.go +++ b/pkg/util/redfish/redfish.go @@ -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,