mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 02:42:04 +00:00
add ha flag to status info
This commit is contained in:
parent
31a9616c0b
commit
8610701ae6
@ -812,8 +812,16 @@ __PACKAGE__->register_method({
|
||||
my $conf = PVE::QemuServer::load_config($param->{vmid});
|
||||
|
||||
my $vmstatus = PVE::QemuServer::vmstatus($param->{vmid});
|
||||
my $status = $vmstatus->{$param->{vmid}};
|
||||
|
||||
return $vmstatus->{$param->{vmid}};
|
||||
my $cc = PVE::Cluster::cfs_read_file('cluster.conf');
|
||||
if (PVE::Cluster::cluster_conf_lookup_pvevm($cc, 0, $param->{vmid}, 1)) {
|
||||
$status->{ha} = 1;
|
||||
} else {
|
||||
$status->{ha} = 0;
|
||||
}
|
||||
|
||||
return $status;
|
||||
}});
|
||||
|
||||
__PACKAGE__->register_method({
|
||||
|
Loading…
Reference in New Issue
Block a user