fix nodeimport rscan error on PPC64

This commit is contained in:
Jia Zhao 2013-10-22 15:54:50 +08:00
parent 93ab2207d3
commit 811277473b

View File

@ -157,7 +157,8 @@ sub process_request {
my @cmmchassis = keys %$cmmref;
push @commandslist, ['rspconfig', 'network=*'];
push @commandslist, ['rscan', '-u'];
push @commandslist, ['rscan', '-u', \@cmmchassis];
push @commandslist, ['rmhwconn', ''];
push @commandslist, ['mkhwconn', '-t'];
}
}elsif ($command eq 'kitnoderemove') {
@ -181,6 +182,11 @@ sub process_request {
{
$retref = xCAT::Utils->runxcmd({command=>[$current_cmd], node=>$nodelist, arg=>[$current_args, "--noupdateinitrd"]}, $request_command, 0, 2);
}
elsif($current_cmd eq "rscan")
{
my $current_nodelist = $_->[2];
$retref = xCAT::Utils->runxcmd({command=>[$current_cmd], node=>$current_nodelist, arg=>[$current_args]}, $request_command, 0, 2);
}
else
{
$retref = xCAT::Utils->runxcmd({command=>[$current_cmd], node=>$nodelist, arg=>[$current_args]}, $request_command, 0, 2);