5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-08-03 04:21:54 +03:00

api: migration preconditions: fix default value for "comigrated" HA vms

By returning an object instead of a array for the default the frontend
can get confused if it's using an iterator code that expects arrays.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht
2025-08-01 17:16:09 +02:00
parent 6b084e3b6b
commit eba40484c9

View File

@ -5232,7 +5232,7 @@ __PACKAGE__->register_method({
my $storage_nodehash =
PVE::QemuServer::check_local_storage_availability($vmconf, $storecfg);
my $comigrated_ha_resources = {};
my $comigrated_ha_resources = [];
my $blocking_ha_resources_by_node = {};
if (PVE::HA::Config::vm_is_ha_managed($vmid)) {