]> git.proxmox.com Git - qemu-server.git/commit
api/migration: fix autocomplete for targetstorage
authorAaron Lauterer <a.lauterer@proxmox.com>
Mon, 18 Nov 2019 14:23:18 +0000 (15:23 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Nov 2019 14:42:18 +0000 (15:42 +0100)
commit255e9c546cb6ba5673030281d53adee8cdf7d766
treefc5e65c8fb23bd3348e4119d910dc602cdb1f2fa
parent340d8b75108f87e5ac9f832d639cd6720dc0b4f4
api/migration: fix autocomplete for targetstorage

Show storages configured for the target node and not for the current one
because they can be different.

Duplicated the `complete_storage` sub and extended it to extract the
targetnode from the parameters to pass it into the storage_check_enabled
function.

Signed-off-by: Aaron Lauterer <a.lauterer@proxmox.com>
PVE/API2/Qemu.pm
PVE/QemuServer.pm