convert vmid to int to conform with return type declaration
Signed-off-by: Tim Marx <t.marx@proxmox.com>
This commit is contained in:
committed by
Thomas Lamprecht
parent
9148f5b355
commit
83a9960c71
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user