mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(cloudcommon): record checksum in list (#14600)
This commit is contained in:
@@ -368,7 +368,6 @@ func Query2List(manager IModelManager, ctx context.Context, userCred mcclient.To
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if len(exportKeys) > 0 {
|
||||
rowMap, err := q.Row2Map(rows)
|
||||
if err != nil {
|
||||
@@ -402,6 +401,10 @@ func Query2List(manager IModelManager, ctx context.Context, userCred mcclient.To
|
||||
}
|
||||
}
|
||||
|
||||
if err := CheckRecordChecksumConsistent(item); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
items = append(items, item)
|
||||
}
|
||||
results := make([]*jsonutils.JSONDict, len(items))
|
||||
|
||||
Reference in New Issue
Block a user