From 2444dcb202d292dc1909c3317c78df5226b44eae Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 21 Nov 2008 12:44:39 +0000 Subject: [PATCH] add error return check git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2519 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/Utils.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/perl-xCAT/xCAT/Utils.pm b/perl-xCAT/xCAT/Utils.pm index cf5a51d5d..c2071395d 100644 --- a/perl-xCAT/xCAT/Utils.pm +++ b/perl-xCAT/xCAT/Utils.pm @@ -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',