From 0914c83a386649d6c347c109296a296b6169cdb9 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 20 Oct 2008 17:13:32 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/sinv.pm | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/xCAT-server/lib/xcat/plugins/sinv.pm b/xCAT-server/lib/xcat/plugins/sinv.pm index b0e5c8df9..75e48cddd 100644 --- a/xCAT-server/lib/xcat/plugins/sinv.pm +++ b/xCAT-server/lib/xcat/plugins/sinv.pm @@ -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);