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