Explorar el Código

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

The former will be used for a different purpose later.
Sebastian Harl hace 13 años
padre
commit
39111edfe3
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1 1
      check_junos.pl
  2. 1 1
      perl/lib/Nagios/Plugin/JUNOS.pm

+ 1 - 1
check_junos.pl

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

+ 1 - 1
perl/lib/Nagios/Plugin/JUNOS.pm

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