2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-08 13:55:37 +00:00

call get_info() for rmvm -f -p

This commit is contained in:
Mark Gurevich
2016-05-13 16:04:09 -04:00
parent 6e6c63c815
commit ea7daa19b1

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: $@");
}