enh(plugin): refacto/migrate os/linux/local/mode/swap.pm

This commit is contained in:
thibaults-centreon 2019-10-23 13:43:11 +02:00
parent dbd10f093d
commit 959975f2fa
1 changed files with 2 additions and 2 deletions

View File

@ -112,8 +112,8 @@ sub check_options {
if (defined($self->{option_results}->{no_swap}) && $self->{option_results}->{no_swap} ne '') {
if ($self->{output}->is_litteral_status(status => $self->{option_results}->{no_swap}) == 0) {
$self->{output}->add_option_msg(short_msg => "Wrong --no-swap status '" . $self->{option_results}->{no_swap} . "'.");
$self->{output}->option_exit();
$self->{output}->add_option_msg(short_msg => "Wrong --no-swap status '" . $self->{option_results}->{no_swap} . "'.");
$self->{output}->option_exit();
}
$self->{no_swap} = $self->{option_results}->{no_swap};
}