mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix image download timout
This commit is contained in:
@@ -271,7 +271,7 @@ func (region *SRegion) CreateImage(zoneId string, imageName, format, osType, des
|
||||
header.Add("X-IMAGE-UUID", image.UUID)
|
||||
header.Add("X-IMAGE-SIZE", fmt.Sprintf("%d", size))
|
||||
header.Add("Content-Type", body.FormDataContentType())
|
||||
resp, err := httputils.Request(httputils.GetDefaultClient(), context.Background(), "POST", image.BackupStorageRefs[0].InstallPath, header, body, false)
|
||||
resp, err := httputils.Request(httputils.GetTimeoutClient(0), context.Background(), "POST", image.BackupStorageRefs[0].InstallPath, header, body, false)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user