Fix broken evaulation on auto discovery (#12408)

My Cisco IP phones were still being auto discovered even when i had autodiscovery.xdp set to false, and it wasn't ignoring them for the auto discovery regex either. This statement had some misplaced Parenthesis. Working now on my install with this fix.
This commit is contained in:
djamp42
2021-01-01 18:22:55 -05:00
committed by GitHub
parent c6c046f172
commit 1536b32907

View File

@@ -54,8 +54,8 @@ foreach ($cdp_array as $key => $cdp_if_array) {
$remote_device_id = find_device_id($cdp['cdpCacheDeviceId'], $cdp_ip);
if (! $remote_device_id &&
! can_skip_discovery($cdp['cdpCacheDeviceId'], $cdp['cdpCacheVersion'], $cdp['cdpCachePlatform'] &&
Config::get('autodiscovery.xdp') === true)
! can_skip_discovery($cdp['cdpCacheDeviceId'], $cdp['cdpCacheVersion'], $cdp['cdpCachePlatform']) &&
Config::get('autodiscovery.xdp') === true
) {
$remote_device_id = discover_new_device($cdp['cdpCacheDeviceId'], $device, 'CDP', $interface);