Nagios::Plugin::JUNOS: Renamed add_checks() to set_checks().

The former will be used for a different purpose later.
This commit is contained in:
Sebastian Harl 2012-01-03 07:58:05 +01:00
parent 121c2fbe64
commit 39111edfe3
2 changed files with 2 additions and 2 deletions

View file

@ -126,7 +126,7 @@ foreach my $arg (@args) {
} }
$plugin->configure(); $plugin->configure();
$plugin->add_checks($valid_checks, 'chassis_environment', @ARGV); $plugin->set_checks($valid_checks, 'chassis_environment', @ARGV);
$junos = $plugin->connect(); $junos = $plugin->connect();
foreach my $check ($plugin->get_checks()) { foreach my $check ($plugin->get_checks()) {

View file

@ -184,7 +184,7 @@ sub _add_single_check
push @{$self->{'conf'}->{'checks'}}, \%c; push @{$self->{'conf'}->{'checks'}}, \%c;
} }
sub add_checks sub set_checks
{ {
my $self = shift; my $self = shift;
my $valid_checks = shift; my $valid_checks = shift;