From 9524c062f2442f0d614dde1305ada6eeb7787e0e Mon Sep 17 00:00:00 2001 From: Quentin Garnier Date: Mon, 15 Sep 2014 11:25:01 +0200 Subject: [PATCH] + Typo fix in f5 --- network/f5/mode/connections.pm | 13 ++++--------- network/f5/mode/hardware.pm | 4 ++-- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/network/f5/mode/connections.pm b/network/f5/mode/connections.pm index dc62123d4..5e2a36088 100644 --- a/network/f5/mode/connections.pm +++ b/network/f5/mode/connections.pm @@ -48,10 +48,10 @@ sub new { $self->{version} = '1.0'; $options{options}->add_options(arguments => { - "warning-client:s" => { name => 'warning_client' }, - "critical-client:s" => { name => 'critical_client' }, - "warning-server:s" => { name => 'warning_server' }, - "critical-server:s" => { name => 'critical_server' }, + "warning-client:s" => { name => 'warning_client' }, + "critical-client:s" => { name => 'critical_client' }, + "warning-server:s" => { name => 'warning_server' }, + "critical-server:s" => { name => 'critical_server' }, }); return $self; @@ -77,8 +77,6 @@ sub check_options { $self->{output}->add_option_msg(short_msg => "Wrong critical-server threshold '" . $self->{option_results}->{critical_client} . "'."); $self->{output}->option_exit(); } - - } sub run { @@ -129,9 +127,6 @@ sub run { $self->{output}->display(); $self->{output}->exit(); - - - } 1; diff --git a/network/f5/mode/hardware.pm b/network/f5/mode/hardware.pm index b155e2c14..7c1ec4379 100644 --- a/network/f5/mode/hardware.pm +++ b/network/f5/mode/hardware.pm @@ -53,8 +53,8 @@ sub new { { "exclude:s" => { name => 'exclude' }, "component:s" => { name => 'component', default => 'all' }, - "warning:s" => { name => 'warning', default => '' }, - "critical:s" => { name => 'critical', default => '' }, + "warning:s" => { name => 'warning' }, + "critical:s" => { name => 'critical' }, }); $self->{components} = {}; return $self;