From 506604b891fb3890200e6dcff2fd9b60421bbf28 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Fri, 17 Feb 2017 15:15:30 +0100 Subject: [PATCH] + Fix #600 --- hardware/server/hp/ilo/xmlapi/mode/components/cpu.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hardware/server/hp/ilo/xmlapi/mode/components/cpu.pm b/hardware/server/hp/ilo/xmlapi/mode/components/cpu.pm index eecb03e0d..5ca6b78d5 100644 --- a/hardware/server/hp/ilo/xmlapi/mode/components/cpu.pm +++ b/hardware/server/hp/ilo/xmlapi/mode/components/cpu.pm @@ -33,6 +33,8 @@ sub check { return if ($self->check_filter(section => 'cpu')); return if (!defined($self->{xml_result}->{GET_EMBEDDED_HEALTH_DATA}->{PROCESSORS}->{PROCESSOR})); + # STATUS can be missing + # # # # foreach my $result (@{$self->{xml_result}->{GET_EMBEDDED_HEALTH_DATA}->{PROCESSORS}->{PROCESSOR}}) { + next if (!defined($result->{STATUS})); my $instance = $result->{LABEL}->{VALUE}; next if ($self->check_filter(section => 'cpu', instance => $instance));