2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-22 12:21:10 +00:00

issue 1068: kvm.pm: shutdown in rmvm will not destory the node object in kvm host, this will cause the next mkvm do nothing

This commit is contained in:
wangxiaopeng
2016-05-07 01:13:25 -04:00
parent 38631134e6
commit 49378b42e1

View File

@@ -1735,7 +1735,7 @@ sub rmvm {
if ($currstate eq 'on') {
if ($force) {
$currxml = $dom->get_xml_description();
$dom->shutdown();
$dom->destroy();
} else {
xCAT::SvrUtils::sendmsg([ 1, "Cannot rmvm active guest (use -f argument to force)" ], $callback, $node);
return;