5
0
mirror of git://git.proxmox.com/git/pve-guest-common.git synced 2024-12-27 03:21:36 +03:00

replication: replicate_volume: rate can be undefined

as it is optional in which case we want to pass undef to
stogae_migrate
This commit is contained in:
Wolfgang Bumiller 2017-06-14 10:23:51 +02:00 committed by Dietmar Maurer
parent 7862a35c71
commit c475e16d11

View File

@ -111,7 +111,7 @@ sub replicate_volume {
my ($storeid, $volname) = PVE::Storage::parse_volume_id($volid);
my $ratelimit_bps = int(1000000*$rate);
my $ratelimit_bps = int(1000000*$rate) if $rate;
PVE::Storage::storage_migrate($storecfg, $volid, $ssh_info, $storeid, $volname,
$base_snapshot, $sync_snapname, $ratelimit_bps, $insecure);
}