From 0f0e06ffd4991598f082cc6fbe95e9a8bbf19495 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Tue, 2 Jun 2020 14:37:33 +0200 Subject: [PATCH] fix hddtemp --- centreon-plugins/apps/hddtemp/custom/cli.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/centreon-plugins/apps/hddtemp/custom/cli.pm b/centreon-plugins/apps/hddtemp/custom/cli.pm index 9df6ecfc4..e9a51c719 100644 --- a/centreon-plugins/apps/hddtemp/custom/cli.pm +++ b/centreon-plugins/apps/hddtemp/custom/cli.pm @@ -102,7 +102,7 @@ sub list_drives { hostname => $self->{option_results}->{hostname}, command => defined($self->{option_results}->{command_drives}) && $self->{option_results}->{command_drives} ne '' ? $self->{option_results}->{command_drives} : 'lsblk', command_path => $self->{option_results}->{command_path_drives}, - command_options => defined($self->{option_results}->{command_options}) && $self->{option_results}->{command_options_drives} ne '' ? $self->{option_results}->{command_options_drives} : '-I 8 -d -o NAME -p -n', + command_options => defined($self->{option_results}->{command_options_drives}) && $self->{option_results}->{command_options_drives} ne '' ? $self->{option_results}->{command_options_drives} : '-I 8 -d -o NAME -p -n', timeout => $self->{option_results}->{timeout} ); } else { @@ -111,7 +111,7 @@ sub list_drives { options => { timeout => $self->{option_results}->{timeout} }, command => defined($self->{option_results}->{command_drives}) && $self->{option_results}->{command_drives} ne '' ? $self->{option_results}->{command_drives} : 'lsblk', command_path => $self->{option_results}->{command_path_drives}, - command_options => defined($self->{option_results}->{command_options}) && $self->{option_results}->{command_options_drives} ne '' ? $self->{option_results}->{command_options_drives} : '-I 8 -d -o NAME -p -n' + command_options => defined($self->{option_results}->{command_options_drives}) && $self->{option_results}->{command_options_drives} ne '' ? $self->{option_results}->{command_options_drives} : '-I 8 -d -o NAME -p -n' ); }