[pve-devel] [PATCH manager] file-restore: pass in full volume ID

Fabian Grünbichler f.gruenbichler at proxmox.com
Fri Apr 23 12:34:24 CEST 2021


not just the snapshot name.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---

Notes:
    only apply if corresponding backend/API patch in pve-storage is applied!

 www/manager6/grid/BackupView.js    | 2 +-
 www/manager6/storage/BackupView.js | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/www/manager6/grid/BackupView.js b/www/manager6/grid/BackupView.js
index 7beeca0e..1d17e964 100644
--- a/www/manager6/grid/BackupView.js
+++ b/www/manager6/grid/BackupView.js
@@ -242,7 +242,7 @@ Ext.define('PVE.grid.BackupView', {
 		    listURL: `/api2/json/nodes/localhost/storage/${storage}/file-restore/list`,
 		    downloadURL: `/api2/json/nodes/localhost/storage/${storage}/file-restore/download`,
 		    extraParams: {
-			snapshot: rec.data.text,
+			volume: rec.data.volid,
 		    },
 		    archive: PVE.Utils.volume_is_qemu_backup(rec.data.volid, rec.data.format) ?
 			'all' : undefined,
diff --git a/www/manager6/storage/BackupView.js b/www/manager6/storage/BackupView.js
index 5be18409..d31a75c2 100644
--- a/www/manager6/storage/BackupView.js
+++ b/www/manager6/storage/BackupView.js
@@ -145,7 +145,7 @@ Ext.define('PVE.storage.BackupView', {
 			listURL: `/api2/json/nodes/localhost/storage/${me.storage}/file-restore/list`,
 			downloadURL: `/api2/json/nodes/localhost/storage/${me.storage}/file-restore/download`,
 			extraParams: {
-			    snapshot: rec.data.text,
+			    volume: rec.data.volid,
 			},
 			archive: PVE.Utils.volume_is_qemu_backup(rec.data.volid, rec.data.format) ?
 			    'all' : undefined,
-- 
2.20.1






More information about the pve-devel mailing list