-Fix new usage semantic to use list reference syntax

-Fix empty requests in UDP service from BUGing with getUsage


git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1023 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-04-11 18:07:55 +00:00
parent b06e17c233
commit ecd4f30a7c
2 changed files with 5 additions and 2 deletions

View File

@ -1195,10 +1195,13 @@ sub process_request {
my $noderange = $request->{node};
my $command = $request->{command}->[0];
my @exargs;
unless ($command) {
return; #Empty request
}
unless ($noderange or $command eq "findme") {
my $usage_string=xCAT::Usage->getUsage($command);
if ($usage_string) {
$callback->({data=>$usage_string});
$callback->({data=>[$usage_string]});
$request = {};
}
return;

View File

@ -4577,7 +4577,7 @@ sub process_request {
unless ($noderange) {
my $usage_string=xCAT::Usage->getUsage($command);
if ($usage_string) {
$callback->({data=>$usage_string});
$callback->({data=>[$usage_string]});
$request = {};
}
return;