Merge branch 'master' of https://github.com/centreon/centreon-plugins
This commit is contained in:
commit
4cb9120fa9
|
@ -99,6 +99,7 @@ my $lookup_type = [
|
||||||
sub define_type {
|
sub define_type {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
|
|
||||||
|
return "unknown" unless (defined($options{desc}) && $options{desc} ne '');
|
||||||
foreach (@$lookup_type) {
|
foreach (@$lookup_type) {
|
||||||
if ($options{desc} =~ /$_->{re}/) {
|
if ($options{desc} =~ /$_->{re}/) {
|
||||||
return $_->{type};
|
return $_->{type};
|
||||||
|
|
Loading…
Reference in New Issue