mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	modify output format when preprocess print error message
This commit is contained in:
		@@ -254,7 +254,7 @@ sub preprocess_request {
 | 
			
		||||
 | 
			
		||||
    my $parse_result = parse_args($command, $extrargs, $noderange);
 | 
			
		||||
    if (ref($parse_result) eq 'ARRAY') {
 | 
			
		||||
        $callback->({ errorcode => $parse_result->[0], data => $parse_result->[1] });
 | 
			
		||||
        $callback->({ errorcode => [$parse_result->[0]], data => [$parse_result->[1]] });
 | 
			
		||||
        $request = {};
 | 
			
		||||
        return;
 | 
			
		||||
    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user