Fix no-ha-status option

'no_ha_status' or 'no_ha_state' to handle the option no-ha-status? :)
Let's use the first name in the code : 'no_ha_status'
This commit is contained in:
Pierre-Yves Taczynski 2019-03-26 12:08:13 +01:00 committed by GitHub
parent d12bf8e497
commit 55e76f569a
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ sub manage_selection {
nothing_quit => 1);
if ($result->{$oid_haInstalled} < 1 or $result->{$oid_haStarted} eq "no") {
$self->{output}->output_add(severity => $self->{option_results}->{no_ha_state},
$self->{output}->output_add(severity => $self->{option_results}->{no_ha_status},
short_msg => sprintf("Looks like HA is not started, or not installed .."),
long_msg => sprintf("HA Installed : '%u' HA Started : '%s'",
$result->{$oid_haInstalled}, $result->{$oid_haStarted}),