diff --git a/xCAT-server-2.0/lib/xcat/plugins/xCATWorld.pm b/xCAT-server-2.0/lib/xcat/plugins/xCATWorld.pm index 5914e63ef..61bdc6c20 100644 --- a/xCAT-server-2.0/lib/xcat/plugins/xCATWorld.pm +++ b/xCAT-server-2.0/lib/xcat/plugins/xCATWorld.pm @@ -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);