mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Sensors remove reliance on global variable (#16344)
* Sensors remove reliance on global variable * Apply fixes from StyleCI * Clear the instance instead of reset. Remove $valid['sensors'] from docs --------- Co-authored-by: Tony Murray <murrant@users.noreply.github.com>
This commit is contained in:
@@ -19,7 +19,7 @@ use Illuminate\Support\Str;
|
||||
|
||||
if (Str::startsWith($device['sysObjectID'], '.1.3.6.1.4.1.1248.4.1')) {
|
||||
discover_sensor(
|
||||
$valid['sensor'],
|
||||
null,
|
||||
'count',
|
||||
$device,
|
||||
'.1.3.6.1.4.1.1248.4.1.1.1.1.0',
|
||||
|
Reference in New Issue
Block a user