fix: Fixed poweralert discovery, check is now case insensitive (#5000)

This commit is contained in:
Neil Lathwood
2016-11-15 20:52:35 +00:00
committed by Søren Rosiak
parent e934e306fc
commit 66dd46b04b
2 changed files with 2 additions and 1 deletions

View File

@@ -1,5 +1,5 @@
<?php <?php
if (starts_with($sysDescr, 'POWERALERT')) { if (starts_with($sysDescr, 'POWERALERT', true)) {
$os = 'poweralert'; $os = 'poweralert';
} }

View File

@@ -1047,6 +1047,7 @@ class DiscoveryTest extends \PHPUnit_Framework_TestCase
public function testPoweralert() public function testPoweralert()
{ {
$this->checkOS('poweralert'); $this->checkOS('poweralert');
$this->checkOS('poweralert', 'poweralert1');
} }
public function testPowerconnect() public function testPowerconnect()