]> git.proxmox.com Git - qemu-server.git/commitdiff
vm_status: return more verbose HA state
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Apr 2016 12:52:02 +0000 (14:52 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 19 Apr 2016 07:01:02 +0000 (09:01 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/API2/Qemu.pm

index 409653ab25d7b25ed239fa2d882f138427488d72..cdc4d21d38b26957eb5f8cda493766ce55ccd574 100644 (file)
@@ -1504,7 +1504,7 @@ __PACKAGE__->register_method({
        my $vmstatus = PVE::QemuServer::vmstatus($param->{vmid}, 1);
        my $status = $vmstatus->{$param->{vmid}};
 
-       $status->{ha} = PVE::HA::Config::vm_is_ha_managed($param->{vmid});
+       $status->{ha} = PVE::HA::Config::get_service_status("vm:$param->{vmid}");
 
        $status->{spice} = 1 if PVE::QemuServer::vga_conf_has_spice($conf->{vga});