]> git.proxmox.com Git - pve-storage.git/commitdiff
fix #1033 storage_migrate on LVMThin - add die.
authorWolfgang Link <w.link@proxmox.com>
Fri, 17 Jun 2016 12:28:15 +0000 (14:28 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 17 Jun 2016 12:55:38 +0000 (14:55 +0200)
This is necessary to ensure the process will proper finished.

PVE/Storage.pm

index bb35b32a4376fb90a2906c391f6285854dfa5884..011c4f3fd639bb7d4c9b689b1ffdaf2e59f09db5 100755 (executable)
@@ -569,6 +569,7 @@ sub storage_migrate {
            if (my $err = $@) {
                run_command(['/usr/bin/ssh', "root\@${target_host}",
                         'pvesm', 'free', $target_volid]);
+               die $err;
            }
        } else {
            die "$errstr - migrate from source type '$scfg->{type}' to '$tcfg->{type}' not implemented\n";