mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-31 01:24:35 +02:00
remove useless code
This commit is contained in:
parent
43d405a375
commit
63d0c387f9
@ -899,9 +899,6 @@ sub map_instance {
|
|||||||
$results->{$name} = $options{results}->{$entry};
|
$results->{$name} = $options{results}->{$entry};
|
||||||
} elsif (defined($options{results}->{$options{mapping}->{$name}->{oid}}->{$entry})) {
|
} elsif (defined($options{results}->{$options{mapping}->{$name}->{oid}}->{$entry})) {
|
||||||
$results->{$name} = $options{results}->{$options{mapping}->{$name}->{oid}}->{$entry};
|
$results->{$name} = $options{results}->{$options{mapping}->{$name}->{oid}}->{$entry};
|
||||||
} elsif (defined($options{mapping}->{$name}->{location}) &&
|
|
||||||
defined($options{results}->{$options{mapping}->{$name}->{location}}->{$entry})) {
|
|
||||||
$results->{$name} = $options{results}->{$options{mapping}->{$name}->{location}}->{$entry};
|
|
||||||
} else {
|
} else {
|
||||||
$results->{$name} = defined($options{default}) ? $options{default} : undef;
|
$results->{$name} = defined($options{default}) ? $options{default} : undef;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user