minor fix

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11650 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
yinle 2012-02-21 06:03:04 +00:00
parent d3e172bd03
commit deccf212ee

View File

@ -2296,8 +2296,7 @@ sub getnodetype
# query table and use the global hash first
############################################
if ( $NODETYPEHASH{$nodes} ) {
$typehash{$nodes} = $NODETYPEHASH{$nodes};
return \%typehash;
return $NODETYPEHASH{$nodes};
} else {
my $typep = $nodetypetab->getNodeAttribs($nodes, ['nodetype']);
if ( $typep->{nodetype} ) {