From: Wolfgang Bumiller Date: Wed, 14 Jun 2017 08:23:51 +0000 (+0200) Subject: replication: replicate_volume: rate can be undefined X-Git-Url: https://git.proxmox.com/?p=pve-guest-common.git;a=commitdiff_plain;h=c475e16d11ab9cae30749c2f80d7fb4c38e7054e replication: replicate_volume: rate can be undefined as it is optional in which case we want to pass undef to stogae_migrate --- diff --git a/PVE/Replication.pm b/PVE/Replication.pm index bae4c73..ed8d07b 100644 --- a/PVE/Replication.pm +++ b/PVE/Replication.pm @@ -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); }