mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	-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:
		| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user