mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-06-18 20:30:56 +00:00
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:
@ -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};
|
||||
|
||||
|
Reference in New Issue
Block a user