]> git.proxmox.com Git - pve-container.git/commitdiff
vm_status: return more verbose HA state
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Mon, 18 Apr 2016 12:52:03 +0000 (14:52 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 19 Apr 2016 07:04:15 +0000 (09:04 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/API2/LXC/Status.pm

index 01dfe12ab00a091f5c01cec4d3decdbf20d60de4..0e0d884be0f2603e14a75a30c56e2f5bea643c64 100644 (file)
@@ -92,7 +92,7 @@ __PACKAGE__->register_method({
        my $vmstatus =  PVE::LXC::vmstatus($param->{vmid});
        my $status = $vmstatus->{$param->{vmid}};
 
-       $status->{ha} = PVE::HA::Config::vm_is_ha_managed($param->{vmid}) ? 1 : 0;
+       $status->{ha} = PVE::HA::Config::get_service_status("ct:$param->{vmid}");
 
        return $status;
     }});