[FIX] fix the restore_mode parameter is missing bug

This commit is contained in:
barnettZQG 2018-06-06 10:15:11 +08:00
parent 22d44e4e22
commit a56fd2aa93

View File

@ -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 {