From 5e7a90d549d728d73a888280147f3786a191a7a4 Mon Sep 17 00:00:00 2001 From: qgarnier Date: Tue, 20 Apr 2021 09:18:10 +0200 Subject: [PATCH] fix(ibm/hmc) led-status mode - systems missing (#2721) --- centreon-plugins/hardware/server/ibm/hmc/ssh/mode/ledstatus.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/centreon-plugins/hardware/server/ibm/hmc/ssh/mode/ledstatus.pm b/centreon-plugins/hardware/server/ibm/hmc/ssh/mode/ledstatus.pm index 7201cec17..2d18fc796 100644 --- a/centreon-plugins/hardware/server/ibm/hmc/ssh/mode/ledstatus.pm +++ b/centreon-plugins/hardware/server/ibm/hmc/ssh/mode/ledstatus.pm @@ -99,7 +99,7 @@ sub manage_selection { $self->{physical} = {}; $self->{virtuallpar} = {}; - while ($content =~ /^system:\s+(.*?)\n(.*?)(?:system:|\Z)/msg) { + while ($content =~ /^system:\s+(.*?)\n(.*?)(?=system:|\Z)/msg) { my ($system_name, $subcontent) = ($1, $2); if (defined($self->{option_results}->{filter_name}) && $self->{option_results}->{filter_name} ne '' && $system_name !~ /$self->{option_results}->{filter_name}/) {