From 811277473b700cabada46cc81399c26b30e25c09 Mon Sep 17 00:00:00 2001 From: Jia Zhao Date: Tue, 22 Oct 2013 15:54:50 +0800 Subject: [PATCH] fix nodeimport rscan error on PPC64 --- xCAT-server/lib/xcat/plugins/00kitnodebase.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/00kitnodebase.pm b/xCAT-server/lib/xcat/plugins/00kitnodebase.pm index 4440bcab5..bf25bb555 100644 --- a/xCAT-server/lib/xcat/plugins/00kitnodebase.pm +++ b/xCAT-server/lib/xcat/plugins/00kitnodebase.pm @@ -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);