Merge pull request #128 from Shini31/issue92

Issue92
This commit is contained in:
qgarnier 2015-08-10 16:57:55 +02:00
commit 91baa8b6f2
3 changed files with 3 additions and 1 deletions

View File

@ -121,6 +121,7 @@ sub run {
$self->{option_results}->{port} = $self->{option_results}->{registry_port};
$self->{option_results}->{proto} = $self->{option_results}->{registry_proto};
$self->{option_results}->{hostname} = $self->{option_results}->{registry_hostname};
$self->{http}->set_options(%{$self->{option_results}});
$jsoncontent2 = $self->{http}->request();

View File

@ -57,6 +57,7 @@ sub check_options {
my ($self, %options) = @_;
$self->SUPER::init(%options);
$self->{http}->set_options(%{$self->{option_results}});
}
sub run {

View File

@ -49,7 +49,7 @@ sub new {
"timeout:s" => { name => 'timeout' },
});
$self->{http}->set_options(%{$self->{option_results}});
$self->{http} = centreon::plugins::http->new(output => $self->{output});
return $self;
}