fix bug about 'runcmd' subroutine in hierarchy environment

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@13251 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
zhaoertao 2012-07-09 02:41:16 +00:00
parent a6a6e79446
commit 561abd493b

View File

@ -1748,6 +1748,9 @@ sub runcmd {
my $cmd = $request->{command};
my $method = $request->{method};
my $hwtype = $request->{hwtype};
if (ref($hwtype) eq 'ARRAY') {
$hwtype = @$hwtype[0];
}
#my $modname = $modules{$cmd};
my $modname = $modules{$cmd}{$hwtype};