Signed-off-by: Fabian Ebner <f.eb...@proxmox.com>
---
 PVE/Storage.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/PVE/Storage.pm b/PVE/Storage.pm
index 851c59d..8969d2e 100755
--- a/PVE/Storage.pm
+++ b/PVE/Storage.pm
@@ -570,6 +570,7 @@ sub storage_migrate {
     my $ratelimit_bps = $opts->{ratelimit_bps};
     my $insecure = $opts->{insecure};
     my $with_snapshots = $opts->{with_snapshots} ? 1 : 0; # sanitize for 
passing as cli parameter
+    my $allow_rename = $opts->{allow_rename} ? 1 : 0; # sanitize for passing 
as cli parameter
 
     my ($storeid, $volname) = parse_volume_id($volid);
     my $target_volname = $opts->{target_volname} || $volname;
@@ -618,6 +619,7 @@ sub storage_migrate {
     if ($migration_snapshot) {
        push @$recv, '-delete-snapshot', $snapshot;
     }
+    push @$recv, '-allow-rename', $allow_rename;
 
     if (defined($base_snapshot)) {
        # Check if the snapshot exists on the remote side:
-- 
2.20.1


_______________________________________________
pve-devel mailing list
pve-devel@pve.proxmox.com
https://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to