From 316e0244d32a829a9b060802071e54362972f1d5 Mon Sep 17 00:00:00 2001 From: Simon Bomm Date: Tue, 6 Sep 2022 10:45:53 +0200 Subject: [PATCH] Getting rid of single quote in instance filter (#3879) --- .../apps/monitoring/openmetrics/mode/scrapemetrics.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/apps/monitoring/openmetrics/mode/scrapemetrics.pm b/centreon-plugins/apps/monitoring/openmetrics/mode/scrapemetrics.pm index d5132240a..cbb4157d2 100644 --- a/centreon-plugins/apps/monitoring/openmetrics/mode/scrapemetrics.pm +++ b/centreon-plugins/apps/monitoring/openmetrics/mode/scrapemetrics.pm @@ -63,8 +63,8 @@ sub check_options { sub run { my ($self, %options) = @_; - $self->{metrics} = centreon::common::monitoring::openmetrics::scrape::parse(%options); - + $self->{metrics} = centreon::common::monitoring::openmetrics::scrape::parse(%options,strip_chars => "[\"']"); + my @exits; my $short_msg = 'All metrics are ok';