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:
parent
772f2ef0bc
commit
2444dcb202
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user