-Report VM POST failures on VM creation

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1963 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-07-30 15:24:29 +00:00
parent 347eff6788
commit 83aab9a10a

View File

@ -200,7 +200,11 @@ sub power {
if ($subcommand eq 'on') {
unless ($dom) {
my $xml=build_xmldesc($node);
my $errstr;
eval { $dom=$hypconn->create_domain($xml); };
if ($@) { $errstr = $@; }
if ($errstr) { return (1,$errstr); }
if ($dom) {
refresh_vm($dom);
}