add error return check

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2519 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-11-21 12:44:39 +00:00
parent 772f2ef0bc
commit 2444dcb202

View File

@ -1823,6 +1823,11 @@ sub readSNInfo
}
$et = xCAT::Utils->GetNodeOSARCH($nodename);
if ($et == 1) {
xCAT::MsgUtils->message('S',
"Could not get OS/ARCH for node $nodename\n");
return 1;
}
if (!($et->{'os'} || $et->{'arch'}))
{
xCAT::MsgUtils->message('S',