mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: cached image fail to refresh (#14081)
Co-authored-by: Qiu Jian <qiujian@yunionyun.com>
This commit is contained in:
@@ -318,7 +318,7 @@ func (manager *SCachedimageManager) GetCachedimageById(ctx context.Context, user
|
||||
return cachedImage, nil
|
||||
}
|
||||
}
|
||||
if errors.Cause(err) != sql.ErrNoRows {
|
||||
if err != nil && errors.Cause(err) != sql.ErrNoRows {
|
||||
return nil, err
|
||||
}
|
||||
s := auth.GetAdminSession(ctx, options.Options.Region, "")
|
||||
|
||||
Reference in New Issue
Block a user