defined(@array) is deprecated
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14505 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
715a5251b6
commit
430a437217
@ -60,7 +60,7 @@ sub preprocess_request {
|
||||
my $switchestab=xCAT::Table->new('switches',-create=>0);
|
||||
my @all_switches;
|
||||
my @tmp=$switchestab->getAllAttribs(('switch'));
|
||||
if (defined(@tmp) && (@tmp > 0)) {
|
||||
if (@tmp && (@tmp > 0)) {
|
||||
foreach(@tmp) {
|
||||
my @switches_tmp=noderange($_->{switch});
|
||||
if (@switches_tmp==0) { push @switches_tmp, $_->{switch}; }
|
||||
|
Loading…
Reference in New Issue
Block a user