2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-30 17:46:38 +00:00

Merge pull request #1301 from chenglch/kvmerrormsg

Change the ref type of errorcode in xcmdoutput to array
This commit is contained in:
Xiaopeng Wang 2016-06-14 22:01:52 +08:00 committed by GitHub
commit 5b0e23c64f

View File

@ -3987,7 +3987,7 @@ sub dohyp {
}
$text =~ s/^\s+//;
$text =~ s/\s+$//;
$output{node}->[0]->{errorcode} = $rc;
$output{node}->[0]->{errorcode} = [$rc];
$output{node}->[0]->{name}->[0] = $node;
if ($rc == 0) {
$output{node}->[0]->{data}->[0]->{contents}->[0] = $text;