diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index 876c0987b..5ee4239e9 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -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};