From b06fdb8519d64facb0a6a167ad0d1a10b51a332e Mon Sep 17 00:00:00 2001 From: yinle Date: Mon, 20 Jun 2011 13:40:59 +0000 Subject: [PATCH] Add check for avoiding warning messages. git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9859 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/tabutils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/tabutils.pm b/xCAT-server/lib/xcat/plugins/tabutils.pm index 919f5edf2..5f8e41eca 100644 --- a/xCAT-server/lib/xcat/plugins/tabutils.pm +++ b/xCAT-server/lib/xcat/plugins/tabutils.pm @@ -283,7 +283,7 @@ sub noderm if (scalar(@$nodes)) { for my $nn ( @$nodes ) { my $nt = xCAT::DBobjUtils->getnodetype($nn); - if ( $nt =~ /^(cec|frame)$/ ) { + if ( $nt and $nt =~ /^(cec|frame)$/ ) { my $cnodep = xCAT::DBobjUtils->getchildren($nn); if ($cnodep) { my $cnode = join ',', @$cnodep;