[pve-devel] [PATCH storage 2/2] convert vmid to int to conform with return type declaration
Tim Marx
t.marx at proxmox.com
Tue Nov 5 13:42:18 CET 2019
Signed-off-by: Tim Marx <t.marx at proxmox.com>
---
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.20.1
More information about the pve-devel
mailing list