mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-15 10:50:28 +00:00
Merge pull request #1112 from gurevichmark/rmvm_volume_error2
call get_info() for rmvm -f -p
This commit is contained in:
@ -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: $@");
|
||||
}
|
||||
|
Reference in New Issue
Block a user