From 680ba9f157eb9a52ac933d30a074d143cf139cc7 Mon Sep 17 00:00:00 2001 From: chenglch Date: Mon, 13 Jun 2016 23:12:21 -0400 Subject: [PATCH] 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 --- xCAT-server/lib/xcat/plugins/kvm.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/kvm.pm b/xCAT-server/lib/xcat/plugins/kvm.pm index bc8e305fb..788201159 100755 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -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;