Just getting rid of the deprecated use of 'defined' for checking the existance of an array.
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@6996 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
4dd2631bdf
commit
95f563b47c
@ -715,7 +715,7 @@ sub refreshProductList {
|
||||
my $table=xCAT::Table->new("monitoring", -create =>1);
|
||||
if ($table) {
|
||||
my @tmp1=$table->getAllAttribs(('name','nodestatmon'));
|
||||
if (defined(@tmp1) && (@tmp1 > 0)) {
|
||||
if (@tmp1 && (@tmp1 > 0)) {
|
||||
foreach(@tmp1) {
|
||||
my $pname=$_->{name};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user