defined(%hash) is deprecated

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14492 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2012-11-30 08:58:36 +00:00
parent 3a3b2c07fc
commit c82f125bf3

View File

@ -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};