(plugin) notification::centreon::opentickets::api - use http common options (#4234)

This commit is contained in:
qgarnier 2023-02-17 15:27:27 +00:00 committed by David Boucher
parent c8f63ddf94
commit b6cc05930a
1 changed files with 3 additions and 2 deletions

View File

@ -57,7 +57,7 @@ sub new {
$self->{output} = $options{output};
$self->{http} = centreon::plugins::http->new(%options);
$self->{cache} = centreon::plugins::statefile->new(%options);
$self->{cache} = centreon::plugins::statefile->new(%options, default_backend => 'curl');
return $self;
}
@ -138,7 +138,8 @@ sub settings {
$self->{http}->set_options(
hostname => $self->{api_hostname},
port => $self->{api_port},
proto => $self->{api_proto}
proto => $self->{api_proto},
%{$self->{option_results}}
);
}