]> git.proxmox.com Git - pve-container.git/commitdiff
add lock to vm status
authorDominik Csapak <d.csapak@proxmox.com>
Thu, 21 Mar 2019 09:55:19 +0000 (10:55 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 21 Mar 2019 17:37:19 +0000 (18:37 +0100)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
src/PVE/LXC.pm

index 0e584f62769dc34c8c661d8216a8b68ec258b01c..4b34bca0ca5a8cefd5abb5d12e2e6bab9a20d854 100644 (file)
@@ -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) {