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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user