mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
Merge pull request #18092 from wanyaoqi/automated-cherry-pick-of-#18091-upstream-release-3.11
Automated cherry pick of #18091: fix(host): insert iso name not correct
This commit is contained in:
@@ -157,7 +157,6 @@ func (c *SLocalImageCacheManager) PrefetchImageCache(ctx context.Context, data i
|
||||
ret.Path = imgCache.GetPath()
|
||||
|
||||
var (
|
||||
name string
|
||||
size int64
|
||||
)
|
||||
if desc := imgCache.GetDesc(); desc != nil {
|
||||
@@ -172,7 +171,7 @@ func (c *SLocalImageCacheManager) PrefetchImageCache(ctx context.Context, data i
|
||||
ret.Size = fi.Size()
|
||||
}
|
||||
}
|
||||
if len(name) == 0 {
|
||||
if len(ret.Name) == 0 {
|
||||
ret.Name = input.ImageId
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user