Ensure the checks for ASA context devices are strict (#9441)

This commit is contained in:
Neil Lathwood
2018-11-10 21:05:25 +00:00
committed by GitHub
parent 9c7d5ed5ba
commit a10503b927
3 changed files with 3 additions and 3 deletions

View File

@@ -138,7 +138,7 @@ if (!empty($entity_oids)) {
$valid_sensor = false;
}
}
if ($current == '-127' || ($device['os'] == 'asa' && str_contains($device['hardware'], 'sc'))) {
if ($current == '-127' || ($device['os'] == 'asa' && ends_with($device['hardware'], 'sc'))) {
$valid_sensor = false;
}
// Check for valid sensors