Skip to content

Commit 89098b7

Browse files
committed
Ignore scalar .0 removal for all numeric oids
1 parent f821f81 commit 89098b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

LibreNMS/Device/YamlDiscovery.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ public static function getValueFromData($name, $index, $discovery_data, $pre_cac
254254
}
255255

256256
// if index is 0 and this is a scalar value, remove the scalar .0
257-
if ($index == 0 && str_ends_with($name, '.0')) {
257+
if ($index == 0 && str_ends_with($name, '.0') && ! Oid::of($name)->isNumeric()) {
258258
$name = substr($name, 0, -2);
259259
}
260260

0 commit comments

Comments
 (0)