From f1db7a8e2b046a870ae5058b66ac793d2cb6e62f Mon Sep 17 00:00:00 2001 From: lissav Date: Fri, 28 Mar 2008 11:57:26 +0000 Subject: [PATCH] improve git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@920 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server-2.0/lib/xcat/plugins/xCATWorld.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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);