mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
fix glance save form url save md5
This commit is contained in:
@@ -55,10 +55,7 @@ func (self *ImageCopyFromUrlTask) OnInit(ctx context.Context, obj db.IStandalone
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
md5 := resp.Header.Get("Content-Md5")
|
||||
if len(md5) == 0 {
|
||||
md5 = resp.Header.Get("x-oss-meta-yunion-os-checksum")
|
||||
}
|
||||
md5 := resp.Header.Get("x-oss-meta-yunion-os-checksum")
|
||||
if len(md5) > 0 {
|
||||
db.Update(image, func() error {
|
||||
image.OssChecksum = md5
|
||||
|
||||
Reference in New Issue
Block a user