From 83a9960c7139447e767009f81372eb25dd87c2ba Mon Sep 17 00:00:00 2001 From: Tim Marx Date: Tue, 5 Nov 2019 13:42:18 +0100 Subject: [PATCH] convert vmid to int to conform with return type declaration Signed-off-by: Tim Marx --- PVE/API2/Storage/Content.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/PVE/API2/Storage/Content.pm b/PVE/API2/Storage/Content.pm index 76c3b67..9f6ea10 100644 --- a/PVE/API2/Storage/Content.pm +++ b/PVE/API2/Storage/Content.pm @@ -101,6 +101,7 @@ __PACKAGE__->register_method ({ foreach my $item (@$vollist) { eval { PVE::Storage::check_volume_access($rpcenv, $authuser, $cfg, undef, $item->{volid}); }; next if $@; + $item->{vmid} = int($item->{vmid}) if (defined($item->{vmid})); push @$res, $item; } -- 2.39.2