mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-12-02 03:37:46 +08:00
[FIX] fix the restore_mode parameter is missing bug
This commit is contained in:
parent
22d44e4e22
commit
a56fd2aa93
@ -350,11 +350,12 @@ func (h *BackupHandle) RestoreBackup(br BackupRestore) (*RestoreResult, *util.AP
|
||||
}
|
||||
restoreID = core_util.NewUUID()
|
||||
var dataMap = map[string]interface{}{
|
||||
"slug_info": br.Body.SlugInfo,
|
||||
"image_info": br.Body.ImageInfo,
|
||||
"backup_id": backup.BackupID,
|
||||
"tenant_id": br.Body.TenantID,
|
||||
"restore_id": restoreID,
|
||||
"slug_info": br.Body.SlugInfo,
|
||||
"image_info": br.Body.ImageInfo,
|
||||
"backup_id": backup.BackupID,
|
||||
"tenant_id": br.Body.TenantID,
|
||||
"restore_id": restoreID,
|
||||
"restore_mode": br.Body.RestoreMode,
|
||||
}
|
||||
data, err := ffjson.Marshal(dataMap)
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user