From 663e41e0d361673a4291332b25242704ae04b33f Mon Sep 17 00:00:00 2001 From: XuWei Date: Mon, 4 Jul 2016 22:14:53 -0400 Subject: [PATCH] Fix issue 1468, modified to check the value of array element --- 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 dae497285..5ae79f980 100755 --- a/xCAT-server/lib/xcat/plugins/kvm.pm +++ b/xCAT-server/lib/xcat/plugins/kvm.pm @@ -3899,7 +3899,7 @@ sub forward_data { #save the nodes that has errors and the ones that has no-op for use by the node status monitoring my $no_op = 0; - if ($_->{node}->[0]->{errorcode}) { $no_op = 1; } + if ($_->{node}->[0]->{errorcode}->[0]) { $no_op = 1; } else { my $text = $_->{node}->[0]->{data}->[0]->{contents}->[0];