From 7d20dade124ef6957627843d463fbe5f868eca82 Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 30 Nov 2012 09:02:22 +0000 Subject: [PATCH] defined(@array) is deprecated git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14494 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/xcat/plugins/blade.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/blade.pm b/xCAT-server/lib/xcat/plugins/blade.pm index ec24bbaf9..faee2f242 100644 --- a/xCAT-server/lib/xcat/plugins/blade.pm +++ b/xCAT-server/lib/xcat/plugins/blade.pm @@ -4528,7 +4528,7 @@ sub get_blades_for_mpa { my @nodearray = $mptab->getAttribs({mpa=>$mpa,nodetype=>"blade"}, qw(node)); my @blades = (); my $nodesattrs; - if (!defined(@nodearray)) { + if (!(@nodearray)) { return (\%blades_hash); } else { foreach (@nodearray) {