mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-09-26 11:18:39 +02:00
+ Fix cisco hsrp mode
This commit is contained in:
parent
b89845a4f6
commit
c5d9239168
@ -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