mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-06 00:36:52 +00:00
add lock to vm status
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
parent
ed15780310
commit
e6ed61b4bd
@ -3065,6 +3065,11 @@ our $vmstatus_return_properties = {
|
|||||||
type => 'number',
|
type => 'number',
|
||||||
optional => 1,
|
optional => 1,
|
||||||
},
|
},
|
||||||
|
lock => {
|
||||||
|
description => "The current lock, if any.",
|
||||||
|
type => 'string',
|
||||||
|
optional => 1,
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
my $last_proc_pid_stat;
|
my $last_proc_pid_stat;
|
||||||
@ -3135,6 +3140,7 @@ sub vmstatus {
|
|||||||
$d->{template} = PVE::QemuConfig->is_template($conf);
|
$d->{template} = PVE::QemuConfig->is_template($conf);
|
||||||
|
|
||||||
$d->{serial} = 1 if conf_has_serial($conf);
|
$d->{serial} = 1 if conf_has_serial($conf);
|
||||||
|
$d->{lock} = $conf->{lock} if $conf->{lock};
|
||||||
|
|
||||||
$res->{$vmid} = $d;
|
$res->{$vmid} = $d;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user