lvm plugin: snapshot delete: propagate previously captured error
Signed-off-by: Fiona Ebner <f.ebner@proxmox.com> Tested-by: Friedrich Weber <f.weber@proxmox.com> Link: https://lore.proxmox.com/20251103162330.112603-2-f.ebner@proxmox.com
This commit is contained in:
committed by
Thomas Lamprecht
parent
d5995ffbf7
commit
f0f9054926
@ -1190,9 +1190,7 @@ sub volume_snapshot_delete {
|
|||||||
}
|
}
|
||||||
#delete the snapshot
|
#delete the snapshot
|
||||||
my $cleanup_worker = eval { free_snap_image($class, $storeid, $scfg, $volname, $snap); };
|
my $cleanup_worker = eval { free_snap_image($class, $storeid, $scfg, $volname, $snap); };
|
||||||
if ($@) {
|
die "error deleting old snapshot volume $snapvolname: $@\n" if $@;
|
||||||
die "error deleting old snapshot volume $snapvolname\n";
|
|
||||||
}
|
|
||||||
fork_cleanup_worker($cleanup_worker);
|
fork_cleanup_worker($cleanup_worker);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user