From d1e710e92a8b02c56557fa4c8e96c42697cd7ba8 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 22 Jan 2019 13:59:12 +0100 Subject: [PATCH] fix ovh notification --- centreon-plugins/notification/ovhsms/mode/alert.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/centreon-plugins/notification/ovhsms/mode/alert.pm b/centreon-plugins/notification/ovhsms/mode/alert.pm index e902dac8a..fce312a7e 100644 --- a/centreon-plugins/notification/ovhsms/mode/alert.pm +++ b/centreon-plugins/notification/ovhsms/mode/alert.pm @@ -105,10 +105,10 @@ sub run { "to=$self->{option_results}->{to}", "from=$self->{option_results}->{from}", "message=$self->{option_results}->{message}", - "class=$self->{option_results}->{class}", - "noStop=$self->{option_results}->{nostop}", + "class=" . (defined($self->{option_results}->{class}) ? $self->{option_results}->{class} : ''), + "noStop=" . (defined($self->{option_results}->{nostop}) ? $self->{option_results}->{nostop} : ''), "contentType=application/json", - "smsCoding=$self->{option_results}->{smsCoding}", + "smsCoding=" . (defined($self->{option_results}->{smsCoding}) ? $self->{option_results}->{smsCoding} : ''), ]; my $response = $self->{http}->request(method => 'GET', get_param => $sms_param);