[pve-devel] applied: [PATCH container v2 1/1] add lock to vm status

Thomas Lamprecht t.lamprecht at proxmox.com
Thu Mar 21 18:38:20 CET 2019


On 3/21/19 10:55 AM, Dominik Csapak wrote:
> 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) {
> 

applied, thanks!




More information about the pve-devel mailing list