(plugin) notification::centreon::opentickets::api - use http common options (#4234)
This commit is contained in:
parent
c8f63ddf94
commit
b6cc05930a
|
@ -57,7 +57,7 @@ sub new {
|
||||||
|
|
||||||
$self->{output} = $options{output};
|
$self->{output} = $options{output};
|
||||||
$self->{http} = centreon::plugins::http->new(%options);
|
$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;
|
return $self;
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,8 @@ sub settings {
|
||||||
$self->{http}->set_options(
|
$self->{http}->set_options(
|
||||||
hostname => $self->{api_hostname},
|
hostname => $self->{api_hostname},
|
||||||
port => $self->{api_port},
|
port => $self->{api_port},
|
||||||
proto => $self->{api_proto}
|
proto => $self->{api_proto},
|
||||||
|
%{$self->{option_results}}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue