[pve-devel] [PATCH container] vm_status: return more verbose HA state

Thomas Lamprecht t.lamprecht at proxmox.com
Mon Apr 18 14:52:03 CEST 2016


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/API2/LXC/Status.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/API2/LXC/Status.pm b/src/PVE/API2/LXC/Status.pm
index 01dfe12..0e0d884 100644
--- a/src/PVE/API2/LXC/Status.pm
+++ b/src/PVE/API2/LXC/Status.pm
@@ -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;
     }});
-- 
2.1.4




More information about the pve-devel mailing list