Fix bug with optional persistence where reset no longer survives

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@15489 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-03-13 19:59:45 +00:00
parent d07d624b01
commit 4b09b8f926

View File

@ -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);