From 893cf3f594ea3edab43e6cb170b06cb1cecc2caf Mon Sep 17 00:00:00 2001 From: yinle Date: Mon, 5 Mar 2012 02:15:58 +0000 Subject: [PATCH] Fix bug 3496026:Poor lsvm error msg when hwtype not set git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@11739 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/DBobjUtils.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/perl-xCAT/xCAT/DBobjUtils.pm b/perl-xCAT/xCAT/DBobjUtils.pm index 467447a39..5d9058bab 100644 --- a/perl-xCAT/xCAT/DBobjUtils.pm +++ b/perl-xCAT/xCAT/DBobjUtils.pm @@ -2269,8 +2269,8 @@ sub getnodetype my $nodetypes = $nodetypetab->getNodesAttribs(\@failnodes, ['nodetype']); foreach my $tn ( @failnodes ) { if ( $nodetypes->{$tn}->[0] ) { - $NODETYPEHASH{$tn} = $nodetypes->{$tn}->[0]; - $typehash{$tn} = $nodetypes->{$tn}->[0]; + $NODETYPEHASH{$tn} = $nodetypes->{$tn}->[0]->{'nodetype'}; + $typehash{$tn} = $nodetypes->{$tn}->[0]->{'nodetype'}; } else { push @failnodes1, $tn; $typehash{$tn} = undef;