2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-07-28 07:11:11 +00:00

Change the ref type of errorcode in xcmdoutput to array

Currently runxcmd can not work with kvm when running rpower command as
`runxcmd_output` subroutine just apply array type for `node->{errorcode}`.

close-issue: #1298
This commit is contained in:
chenglch
2016-06-13 23:12:21 -04:00
parent 993ee53278
commit 680ba9f157

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;