]> git.proxmox.com Git - pve-manager-legacy.git/commit
Improve storage selection on restore
authorFabian Ebner <f.ebner@proxmox.com>
Wed, 6 May 2020 08:14:27 +0000 (10:14 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 6 May 2020 14:23:40 +0000 (16:23 +0200)
commitbd457161833c31dc896cea7470684aeed8c6790a
treeffdd481fa6cc8a6dd7062a75c5e386e20af2a753
parent416c63f50f37c698f2dea32508f292b3c853e0c8
Improve storage selection on restore

Previously, the blank '' would be passed along and lead to a
parameter verfication failure.

For LXC the default behavior in the backend is to use 'local', so
disallow blank and auto-select the first storage supporting'rootdir'
instead.

For QEMU the default behavior in the backend is to use the
original layout from the backup configuration file, which
makes sense to use as the default in the GUI as well.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
www/manager6/window/Restore.js