fix temperature component

This commit is contained in:
Kevin Duret 2014-12-08 09:32:10 +01:00
parent 43d13ced04
commit 5ad2d6c8c8
1 changed files with 2 additions and 0 deletions

View File

@ -159,6 +159,8 @@ sub run {
$self->check_fan();
} elsif ($self->{option_results}->{component} eq 'psu') {
$self->check_psu();
} elsif ($self->{option_results}->{component} eq 'temperature') {
$self->check_temperature();
} else {
$self->{output}->add_option_msg(short_msg => "Wrong option. Cannot find component '" . $self->{option_results}->{component} . "'.");
$self->{output}->option_exit();