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:
parent
a6a6e79446
commit
561abd493b
@ -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};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user