defined(%hash) is deprecated

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

View File

@ -1497,7 +1497,7 @@ sub enablessh
my ($class, $node) = @_;
my $enablessh=1;
if( defined(%::GLOBAL_SN_HASH) ) {
if( %::GLOBAL_SN_HASH ) {
if ($::GLOBAL_SN_HASH{$node} == 1) {
$enablessh=1; # service nodes always enabled