fixed bug 3109407, use if(@TableRowArray) to replace if(defined(@TableRowArray))

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8167 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jjhua 2010-11-16 08:03:24 +00:00
parent 0a66587d12
commit 34ac6419a4
3 changed files with 3 additions and 3 deletions

View File

@ -84,7 +84,7 @@ sub do_getmacs {
my $table = "nodetype";
my $intable = 0;
my @TableRowArray = xCAT::DBobjUtils->getDBtable($table);
if ( defined(@TableRowArray) ) {
if ( @TableRowArray ) {
foreach ( @TableRowArray ) {
my @nodelist = split(',', $_->{'node'});
my @oslist = split(',', $_->{'os'});

View File

@ -758,7 +758,7 @@ sub lpar_netboot {
my $table = "nodetype";
my $intable = 0;
my @TableRowArray = xCAT::DBobjUtils->getDBtable($table);
if ( defined(@TableRowArray) ) {
if ( @TableRowArray ) {
foreach ( @TableRowArray ) {
my @nodelist = split(',', $_->{'node'});
my @oslist = split(',', $_->{'os'});

View File

@ -297,7 +297,7 @@ sub do_getmacs {
my $table = "nodetype";
my $intable = 0;
my @TableRowArray = xCAT::DBobjUtils->getDBtable($table);
if ( defined(@TableRowArray) ) {
if ( @TableRowArray ) {
foreach ( @TableRowArray ) {
my @nodelist = split(',', $_->{'node'});
my @oslist = split(',', $_->{'os'});