mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
modify output format when preprocess print error message
This commit is contained in:
parent
dc2ae3fb9b
commit
79bfb9a898
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user