mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 01:26:38 +00:00
Merge pull request #3029 from xuweibj/I3206
modify output format when preprocess print error message
This commit is contained in:
commit
74b460072c
@ -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