convert vmid to int to conform with return type declaration

Signed-off-by: Tim Marx <t.marx@proxmox.com>
This commit is contained in:
Tim Marx
2019-11-05 13:42:18 +01:00
committed by Thomas Lamprecht
parent 9148f5b355
commit 83a9960c71

View File

@ -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;
}