mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-22 11:42:05 +00:00
Merge pull request #4061 from xuweibj/I4057
Fix issue 4057, enhance framework to print node range when unsupport
This commit is contained in:
commit
09edb40a3d
@ -432,7 +432,12 @@ 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]] });
|
||||
my $error_data;
|
||||
foreach my $node (@$noderange) {
|
||||
$error_data .= "\n" if ($error_data);
|
||||
$error_data .= "$node: Error: " . "$parse_result->[1]";
|
||||
}
|
||||
$callback->({ errorcode => [$parse_result->[0]], data => [$error_data] });
|
||||
$request = {};
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user