5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-24 02:04:10 +03:00

scan volids: remove superfluous parameter

The only caller that didn't use 'images' was removed as part of the migration
refactoring in commit 62a4c963b824c923a4fc82a48c81d0f63ebaddae, so this is not
even a breaking change as the 'PVE 7' comment might've suggested.

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Reviewed-by: Stefan Reiter <s.reiter@proxmox.com>
This commit is contained in:
Fabian Ebner 2021-06-04 15:49:29 +02:00 committed by Fabian Grünbichler
parent 692f604bb0
commit 9a8ba1272c

View File

@ -6091,11 +6091,10 @@ my $restore_destroy_volumes = sub {
}
};
# FIXME For PVE 7.0, remove $content_type and always use 'images'
sub scan_volids {
my ($cfg, $vmid, $content_type) = @_;
my ($cfg, $vmid) = @_;
my $info = PVE::Storage::vdisk_list($cfg, undef, $vmid, undef, $content_type);
my $info = PVE::Storage::vdisk_list($cfg, undef, $vmid, undef, 'images');
my $volid_hash = {};
foreach my $storeid (keys %$info) {
@ -6189,7 +6188,7 @@ sub rescan {
my $cfg = PVE::Storage::config();
print "rescan volumes...\n";
my $volid_hash = scan_volids($cfg, $vmid, 'images');
my $volid_hash = scan_volids($cfg, $vmid);
my $updatefn = sub {
my ($vmid) = @_;