[pve-devel] [PATCH container 1/1] add lock to vm status
Dominik Csapak
d.csapak at proxmox.com
Wed Mar 20 11:29:02 CET 2019
Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
src/PVE/LXC.pm | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/src/PVE/LXC.pm b/src/PVE/LXC.pm
index 0e584f6..4b34bca 100644
--- a/src/PVE/LXC.pm
+++ b/src/PVE/LXC.pm
@@ -162,6 +162,11 @@ our $vmstatus_return_properties = {
type => 'number',
optional => 1,
},
+ lock => {
+ description => "The current lock, if any.",
+ type => 'string',
+ optional => 1,
+ }
};
sub vmstatus {
@@ -231,6 +236,7 @@ sub vmstatus {
$d->{diskwrite} = 0;
$d->{template} = PVE::LXC::Config->is_template($conf);
+ $d->{lock} = $conf->{lock} if $conf->{lock};
}
foreach my $vmid (keys %$list) {
--
2.11.0
More information about the pve-devel
mailing list