change to interface from xclientnrr

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2368 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
lissav 2008-10-20 17:13:32 +00:00
parent 4be828a2b3
commit 0914c83a38

View File

@ -123,13 +123,8 @@ sub process_request
my $request = shift;
my $callback = shift;
my $sub_req = shift;
my $nodes = $request->{node};
my $command = $request->{command}->[0];
my $args = $request->{arg};
my $envs = $request->{env};
my $rsp = {};
sinv($nodes, $args, $callback, $command, $request->{noderange}->[0],$sub_req);
sinv($request, $callback,$sub_req);
}
#-------------------------------------------------------
@ -144,14 +139,14 @@ sub process_request
#-------------------------------------------------------
sub sinv
{
my ($nodes, $args, $callback, $command, $noderange, $sub_req) = @_;
my ($request, $callback, $sub_req) = @_;
my $rsp = {};
# parse input and run dsh
my @local_results =
xCAT::SINV->parse_and_run_sinv($nodes, $args, $callback,
$command, $noderange, $sub_req);
xCAT::SINV->parse_and_run_sinv($request, $callback,
$sub_req);
my $rsp = {};
push @{$rsp->{data}}, @local_results;
xCAT::MsgUtils->message("I", $rsp, $callback);