From dc877c5959fa05a610a5433cf1aa706fed152f13 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Mon, 3 Feb 2020 10:31:47 +0100 Subject: [PATCH] some indent --- .../notification/prowl/mode/alert.pm | 24 +++++++++---------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/centreon-plugins/notification/prowl/mode/alert.pm b/centreon-plugins/notification/prowl/mode/alert.pm index b0e75d1bf..49091603f 100644 --- a/centreon-plugins/notification/prowl/mode/alert.pm +++ b/centreon-plugins/notification/prowl/mode/alert.pm @@ -43,21 +43,20 @@ sub new { bless $self, $class; $options{options}->add_options(arguments => { - "hostname:s" => { name => 'hostname', default => 'api.prowlapp.com' }, - "port:s" => { name => 'port', default => 443 }, - "proto:s" => { name => 'proto', default => 'https' }, - "urlpath:s" => { name => 'url_path', default => "/publicapi/add" }, - "apikey:s" => { name => 'apikey' }, - "providerkey:s" => { name => 'providerkey' }, - "priority:s" => { name => 'priority' }, - "application:s" => { name => 'application' }, - "event:s" => { name => 'event' }, - "message:s" => { name => 'message' }, - "timeout:s" => { name => 'timeout' }, + 'hostname:s' => { name => 'hostname', default => 'api.prowlapp.com' }, + 'port:s' => { name => 'port', default => 443 }, + 'proto:s' => { name => 'proto', default => 'https' }, + 'urlpath:s' => { name => 'url_path', default => "/publicapi/add" }, + 'apikey:s' => { name => 'apikey' }, + 'providerkey:s' => { name => 'providerkey' }, + 'priority:s' => { name => 'priority' }, + 'application:s' => { name => 'application' }, + 'event:s' => { name => 'event' }, + 'message:s' => { name => 'message' }, + 'timeout:s' => { name => 'timeout' }, }); $self->{http} = centreon::plugins::http->new(%options); - return $self; } @@ -107,7 +106,6 @@ sub run { $decoded = XMLin($response); }; if ($@) { - $self->{output}->output_add(long_msg => $response, debug => 1); $self->{output}->add_option_msg(short_msg => "Cannot decode xml response: $@"); $self->{output}->option_exit(); }