]> git.proxmox.com Git - pve-container.git/commitdiff
fix #2611: use correct operation in get_bandwidth_limit
authorStefan Reiter <s.reiter@proxmox.com>
Tue, 25 Feb 2020 15:32:02 +0000 (16:32 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 3 Mar 2020 10:45:18 +0000 (11:45 +0100)
Signed-off-by: Stefan Reiter <s.reiter@proxmox.com>
src/PVE/LXC/Migrate.pm

index 7df3c4c84600d183c5a3cde261e7f38796c65dc1..6c1e9c18542e0ae266992ef4dbed452450069e7b 100644 (file)
@@ -284,7 +284,7 @@ sub phase1 {
        my ($sid, $volname) = PVE::Storage::parse_volume_id($volid);
        push @{$self->{volumes}}, $volid;
        my $with_snapshots = $volhash->{$volid}->{snapshots};
-       my $bwlimit = PVE::Storage::get_bandwidth_limit('migrate', [$sid], $opts->{bwlimit});
+       my $bwlimit = PVE::Storage::get_bandwidth_limit('migration', [$sid], $opts->{bwlimit});
        # JSONSchema and get_bandwidth_limit use kbps - storage_migrate bps
        $bwlimit = $bwlimit * 1024 if defined($bwlimit);