mirror of
https://hubproxy.babadafafafafa.cn/https://github.com/yunionio/cloudpods.git
synced 2026-09-20 08:03:53 +08:00
fix(host): don't return error on disk snap chain miss
This commit is contained in:
@@ -392,7 +392,7 @@ func guestDestPrepareMigrateInternal(ctx context.Context, userCred mcclient.Toke
|
||||
}
|
||||
diskSnapsChain, err := body.Get("disk_snaps_chain")
|
||||
if err != nil {
|
||||
return httperrors.NewMissingParameterError("disk_snaps_chain")
|
||||
params.DiskSnapsChain = jsonutils.NewDict()
|
||||
} else {
|
||||
params.DiskSnapsChain = diskSnapsChain
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user