2
0
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:
XuWei 2017-05-11 03:24:28 -04:00
parent dc2ae3fb9b
commit 79bfb9a898

View File

@ -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;
}