mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Fixed poweralert discovery, check is now case insensitive (#5000)
This commit is contained in:
committed by
Søren Rosiak
parent
e934e306fc
commit
66dd46b04b
@@ -1,5 +1,5 @@
|
||||
<?php
|
||||
|
||||
if (starts_with($sysDescr, 'POWERALERT')) {
|
||||
if (starts_with($sysDescr, 'POWERALERT', true)) {
|
||||
$os = 'poweralert';
|
||||
}
|
||||
|
||||
@@ -1047,6 +1047,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
|
||||
public function testPoweralert()
|
||||
{
|
||||
$this->checkOS('poweralert');
|
||||
$this->checkOS('poweralert', 'poweralert1');
|
||||
}
|
||||
|
||||
public function testPowerconnect()
|
||||
|
||||
Reference in New Issue
Block a user