mirror of
git://git.proxmox.com/git/pve-guest-common.git
synced 2024-12-28 07: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:
parent
7862a35c71
commit
c475e16d11
@ -111,7 +111,7 @@ sub replicate_volume {
|
|||||||
|
|
||||||
my ($storeid, $volname) = PVE::Storage::parse_volume_id($volid);
|
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,
|
PVE::Storage::storage_migrate($storecfg, $volid, $ssh_info, $storeid, $volname,
|
||||||
$base_snapshot, $sync_snapname, $ratelimit_bps, $insecure);
|
$base_snapshot, $sync_snapname, $ratelimit_bps, $insecure);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user