From 0218cbc730a23c01cc4ac1068e13d35762a7897d Mon Sep 17 00:00:00 2001 From: yinle Date: Tue, 7 Jun 2011 05:59:56 +0000 Subject: [PATCH] minor fix git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@9747 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/FSPcfg.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/perl-xCAT/xCAT/FSPcfg.pm b/perl-xCAT/xCAT/FSPcfg.pm index 1f9e101e5..5d2c9601a 100644 --- a/perl-xCAT/xCAT/FSPcfg.pm +++ b/perl-xCAT/xCAT/FSPcfg.pm @@ -68,11 +68,11 @@ sub parse_args { ############################################# # Get support command list ############################################# - #my $sitetab = xCAT::Table->new( 'nodetype' ); + #my $typetab = xCAT::Table->new( 'nodetype' ); #my $nodes = $request->{node}; #foreach (@$nodes) { - # if ( defined( $sitetab )) { - # my ($ent) = $sitetab->getAttribs({ node=>$_},'nodetype'); + # if ( defined( $typetab )) { + # my ($ent) = $typetab->getAttribs({ node=>$_},'nodetype'); # if ( defined($ent) ) { # $request->{hwtype} = $ent->{nodetype}; # last; @@ -85,7 +85,7 @@ sub parse_args { my $nodes = $request->{node}; foreach my $nn (@$nodes) { $request->{hwtype} = xCAT::DBobjUtils->getnodetype($nn); - last; + last if ($request->{hwtype}); } my $supported = $rsp{$request->{hwtype}};