]> git.proxmox.com Git - pve-container.git/commitdiff
migrate: also set targetsid for unreferenced disks
authorFabian Ebner <f.ebner@proxmox.com>
Thu, 3 Mar 2022 12:31:19 +0000 (13:31 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Thu, 3 Mar 2022 13:22:33 +0000 (14:22 +0100)
It's expected to be set further below. Reported in the community
forum: https://forum.proxmox.com/threads/105685

Fixes: e90ddc4 ("fix #1532: add target-storage support to migration")
Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
src/PVE/LXC/Migrate.pm

index 64bdd3841c4a75f8f4029fb69fa92b06813a3870..2ef1cce42adf738050c6cf37043c2bbb54bc01a8 100644 (file)
@@ -220,6 +220,7 @@ sub phase1 {
            my ($volid, $sid, $volname) = @_;
 
            $volhash->{$volid}->{ref} = 'storage';
+           $volhash->{$volid}->{targetsid} = $targetsid;
        });
     }