From 37ff4814b7efbe904b48810028970475f760b0ff Mon Sep 17 00:00:00 2001 From: XuWei Date: Mon, 9 Oct 2017 02:31:15 -0400 Subject: [PATCH] Fix issue 4057, enhance framework to print node range when unsupport --- xCAT-server/lib/xcat/plugins/openbmc.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 42249927c..740d64108 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -420,7 +420,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; }