improve
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@920 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
235a4f036f
commit
f1db7a8e2b
@ -53,13 +53,16 @@ sub process_request
|
||||
my $args = $request->{arg};
|
||||
my $envs = $request->{env};
|
||||
my %rsp;
|
||||
my $i = 0;
|
||||
my $i = 1;
|
||||
my @nodes=@$nodes;
|
||||
# do your processing here
|
||||
# return info
|
||||
|
||||
$rsp->{data}->[0] = "Hello World! Your node list is:\n";
|
||||
xCAT::MsgUtils->message("I", $rsp, $callback, 0);
|
||||
foreach $node (@nodes)
|
||||
{
|
||||
$rsp->{data}->[$i] = "Hello $node\n";
|
||||
$rsp->{data}->[$i] = "$node\n";
|
||||
$i++;
|
||||
}
|
||||
xCAT::MsgUtils->message("I", $rsp, $callback, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user