-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:
parent
b06e17c233
commit
ecd4f30a7c
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user