Skip to content

Commit 95c6497

Browse files
authored
fix(notification::centreon::opentickets::api): changed timeout option to fit mapping for open ticket (#5981)
Refs: CTOR-2195
1 parent 22672ff commit 95c6497

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

  • src/notification/centreon/opentickets/api/custom

src/notification/centreon/opentickets/api/custom/api.pm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ sub new {
4949
'url-path:s' => { name => 'url_path' },
5050
'api-username:s' => { name => 'api_username' },
5151
'api-password:s' => { name => 'api_password' },
52-
'api-timeout:s' => { name => 'api_timeout' }
52+
'api-timeout:s' => { name => 'timeout' }
5353
});
5454
}
5555
$options{options}->add_help(package => __PACKAGE__, sections => 'REST API OPTIONS', once => 1);
@@ -78,7 +78,6 @@ sub check_options {
7878
$self->{url_path} = (defined($self->{option_results}->{url_path})) ? $self->{option_results}->{url_path} : '/centreon/api/';
7979
$self->{api_username} = (defined($self->{option_results}->{api_username})) ? $self->{option_results}->{api_username} : '';
8080
$self->{api_password} = (defined($self->{option_results}->{api_password})) ? $self->{option_results}->{api_password} : '';
81-
$self->{api_timeout} = (defined($self->{option_results}->{api_timeout})) ? $self->{option_results}->{api_timeout} : 10;
8281

8382
if ($self->{api_hostname} eq '') {
8483
$self->{output}->add_option_msg(short_msg => 'Need to specify api-hostname option.');
@@ -263,7 +262,7 @@ Centreon Open-Tickets API
263262
264263
=head1 SYNOPSIS
265264
266-
Centreon open-tickets api
265+
Centreon open-tickets API
267266
268267
=head1 REST API OPTIONS
269268
@@ -275,7 +274,7 @@ Centreon address.
275274
276275
=item B<--url-path>
277276
278-
API url path (default: '/centreon/api/')
277+
API url path (default: C</centreon/api/>)
279278
280279
=item B<--api-port>
281280

0 commit comments

Comments
 (0)