]> git.proxmox.com Git - proxmox-backup.git/commit
ui: tape: fix restore datastore mapping parameter construction
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 6 Jun 2023 09:20:45 +0000 (11:20 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 6 Jun 2023 11:15:01 +0000 (13:15 +0200)
commitf4c54e9917906a112dc15eecfcfc38e7de6e6a85
treea9ce85b82bbfdf5e4574d64454f56b847721f195
parent8ccdeb217d1a865347e67aa2ea57cf19c02d2e5e
ui: tape: fix restore datastore mapping parameter construction

We recently took into account the selected datastore when restoring
from tape, but the snapshot grids value may not only be a single
datastore, it can also be a list of snapshots, datastores or 'all'.

Handle these cases and extract the source datastore correctly.

This fixes tape restoration when not a whole datastore is selected.

Reported in the forum:
https://forum.proxmox.com/threads/restore-from-lto-parameter-verification-errors-store.128445

Fixes: df881ed0 ("ui: tape: fix restoring a single datastore")
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
(cherry picked from commit 73bd988c42859836676c707c3b5257bad40a199f)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
www/tape/window/TapeRestore.js