mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-30 17:15:11 +02:00
(mode) snmp_standard::mode::stringvalue - fix infinite loop (#3769)
This commit is contained in:
parent
16c0cfdcd3
commit
69569136a0
@ -242,9 +242,7 @@ sub change_macros {
|
||||
my ($self, %options) = @_;
|
||||
|
||||
my $value = $self->{option_results}->{'format_' . $options{severity}};
|
||||
while ($value =~ /%\{(.*?)\}/g) {
|
||||
$value =~ s/%\{($1)\}/$self->{macros}->{$1}/eg;
|
||||
}
|
||||
$value =~ s/%\{(.*?)\}/$self->{macros}->{$1}/g;
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user