]> git.proxmox.com Git - pve-storage.git/commitdiff
convert vmid to int to conform with return type declaration
authorTim Marx <t.marx@proxmox.com>
Tue, 5 Nov 2019 12:42:18 +0000 (13:42 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 5 Nov 2019 17:37:15 +0000 (18:37 +0100)
Signed-off-by: Tim Marx <t.marx@proxmox.com>
PVE/API2/Storage/Content.pm

index 76c3b673c1028863fd35b3dc05fed24820d6bf14..9f6ea108ebdf955b31fd1876bca3ec7be62f216e 100644 (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;
        }