2
0
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:
zet809 2017-05-11 15:51:31 +08:00 committed by GitHub
commit 74b460072c

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