mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-19 10:46:58 +08:00
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