+ Fix cisco hsrp mode

This commit is contained in:
garnier-quentin 2015-06-18 16:31:33 +02:00
parent fd1cc13e24
commit 65e0a15c02
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}