+ Fix matching for extra oids

This commit is contained in:
garnier-quentin 2016-08-19 11:02:03 +02:00
parent af59e89b64
commit b5f4a651fc
1 changed files with 1 additions and 1 deletions

View File

@ -126,7 +126,7 @@ sub check_options {
foreach (@{$self->{option_results}->{add_extra_oid}}) {
next if ($_ eq '');
my ($name, $oid, $matching) = split /,/;
$matching = '%{instance}' if (!defined($matching));
$matching = '%{instance}$' if (!defined($matching));
if (!defined($oid) || $oid !~ /^(\.\d+){1,}$/ || $name eq '') {
$self->{output}->add_option_msg(short_msg => "Wrong syntax for add-extra-oid '" . $_ . "' option.");
$self->{output}->option_exit();