From c82f125bf3fce1367dfb748c309a7b59d868715b Mon Sep 17 00:00:00 2001 From: xq2005 Date: Fri, 30 Nov 2012 08:58:36 +0000 Subject: [PATCH] defined(%hash) is deprecated git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14492 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/lib/perl/xCAT/SvrUtils.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index a5a07c49c..aaaa9e0f7 100644 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -161,7 +161,7 @@ sub get_nodeset_state my $state = "undefined"; my $tftpdir; my $boottype; - if( defined(%::GLOBAL_TAB_HASH) && defined($::GLOBAL_TAB_HASH{noderes}) && defined($::GLOBAL_TAB_HASH{noderes}{$node}) ) { + if( %::GLOBAL_TAB_HASH && defined($::GLOBAL_TAB_HASH{noderes}) && defined($::GLOBAL_TAB_HASH{noderes}{$node}) ) { $tftpdir = $::GLOBAL_TAB_HASH{noderes}{$node}{tftpdir}; $boottype = $::GLOBAL_TAB_HASH{noderes}{$node}{netboot};