From a0a6db72ff3a2787f52786c2d1c298bd67b0552c Mon Sep 17 00:00:00 2001 From: daniceexi Date: Thu, 14 Mar 2013 02:27:30 +0000 Subject: [PATCH] Fix bug with optional persistence where reset no longer survives git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@15493 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 317c9461f..84db86a98 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -2300,8 +2300,9 @@ sub power { unless ($newxml) { $newxml=$oldxml; } #TODO: remove this when the 'else' line can be sanely filled out if ($newxml) { #need to destroy and repower.. $updatetable->{kvm_nodedata}->{$node}->{xml}=$newxml; + my $persist = $dom->is_persistent(); $dom->destroy(); - $dom->undefine(); + if ($persist) { $dom->undefine(); } undef $dom; if ($use_xhrm) { xhrm_satisfy($node,$hyp);