2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-15 19:01:44 +00:00

Merge pull request #1112 from gurevichmark/rmvm_volume_error2

call get_info() for rmvm -f -p
This commit is contained in:
Xiaopeng Wang
2016-05-16 08:39:06 +08:00

View File

@ -1764,7 +1764,11 @@ sub rmvm {
last;
}
if ($vol) {
eval { $vol->delete(); };
eval {
# Need to call get_info() before deleting a volume, without that, delete() will sometimes fail. Issue #455
$vol->get_info();
$vol->delete();
};
if ($@) {
xCAT::MsgUtils->trace(0, "e", "kvm: $@");
}