mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 23:54:18 +02:00
+ Fix cisco hsrp mode
This commit is contained in:
parent
fd1cc13e24
commit
65e0a15c02
@ -73,7 +73,7 @@ sub check_options {
|
||||
my ($self, %options) = @_;
|
||||
$self->SUPER::init(%options);
|
||||
|
||||
if (($self->{option_results}->{role} !~ /^primary|secondary$/) {
|
||||
if ($self->{option_results}->{role} !~ /^primary|secondary$/) {
|
||||
$self->{output}->add_option_msg(short_msg => "You must use either primary either secondary for --role option");
|
||||
$self->{output}->option_exit();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user