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:
commit
5b0e23c64f
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user