defined(@array) is deprecated

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14494 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-11-30 09:02:22 +00:00
parent f1333718f9
commit 7d20dade12

View File

@ -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) {