From b116fde99a1e8b9ad9d79d726f0fde1d20f50ebe Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 19 Mar 2019 10:31:11 +0100 Subject: [PATCH] Fix http port set sahipro --- centreon-plugins/apps/sahipro/restapi/mode/scenario.pm | 2 +- centreon-plugins/centreon/plugins/http.pm | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/centreon-plugins/apps/sahipro/restapi/mode/scenario.pm b/centreon-plugins/apps/sahipro/restapi/mode/scenario.pm index 180f100e6..96da32dc3 100644 --- a/centreon-plugins/apps/sahipro/restapi/mode/scenario.pm +++ b/centreon-plugins/apps/sahipro/restapi/mode/scenario.pm @@ -211,7 +211,7 @@ sub check_options { } $self->change_macros(macros => ['warning_status', 'critical_status']); - $self->{http}->set_options(%{$self->{option_results}}); + $self->{http}->set_options(port => $self->{option_results}->{sahi_port}, proto => $self->{option_results}->{sahi_proto}); } sub decode_xml_response { diff --git a/centreon-plugins/centreon/plugins/http.pm b/centreon-plugins/centreon/plugins/http.pm index 8c8c4f456..794e506f3 100644 --- a/centreon-plugins/centreon/plugins/http.pm +++ b/centreon-plugins/centreon/plugins/http.pm @@ -104,7 +104,6 @@ sub check_options { $self->{output}->option_exit(); } - $options{request}->{port} = $self->get_port_request(); $options{request}->{port_force} = $self->get_port(); $options{request}->{headers} = {};