]> git.proxmox.com Git - pve-container.git/commitdiff
Fix move_volume by using result from parse_volume
authorFabian Ebner <f.ebner@proxmox.com>
Mon, 20 Apr 2020 11:12:28 +0000 (13:12 +0200)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Tue, 21 Apr 2020 12:49:13 +0000 (14:49 +0200)
This was changed by accident by my refactoring in
commit e4034859fd0e3491fd1aefb4f9ef44ee585aa404

Signed-off-by: Fabian Ebner <f.ebner@proxmox.com>
src/PVE/API2/LXC.pm

index 3a8694a0e744a9b3882ccdcaa52b30dfc8b9f3ea..79ca025cea2f6051f1cf196f889f9535e201b1e8 100644 (file)
@@ -1783,7 +1783,7 @@ __PACKAGE__->register_method({
 
            die "cannot move volumes of a running container\n" if PVE::LXC::check_running($vmid);
 
-           PVE::LXC::Config->parse_volume($mpkey, $conf->{$mpkey});
+           $mpdata = PVE::LXC::Config->parse_volume($mpkey, $conf->{$mpkey});
            $old_volid = $mpdata->{volume};
 
            die "you can't move a volume with snapshots and delete the source\n"