From 640f050de61d251e3707ee63a447bc5054fd90af Mon Sep 17 00:00:00 2001 From: jbjohnso Date: Mon, 13 Apr 2009 13:16:58 +0000 Subject: [PATCH] -Fix problems where destroyed domains would be queried incorrectly git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3172 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/kvm.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index 582a9babb..df27f838a 100644 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -607,6 +607,7 @@ sub power { } elsif ($subcommand eq 'off') { if ($dom) { $dom->destroy(); + undef $dom; } else { $retstring .= "$status_noop"; } } elsif ($subcommand eq 'softoff') { if ($dom) { @@ -615,6 +616,7 @@ sub power { } elsif ($subcommand eq 'reset') { if ($dom) { $dom->destroy(); + undef $dom; ($dom,$errstr) = makedom($node,$cdloc); if ($errstr) { return (1,$errstr); } $retstring.="reset";