Do not try to fetch data again if previous attempts failed (#9139)

result is null, which will fail isset() check
This commit is contained in:
Tony Murray
2018-09-03 07:55:34 +01:00
committed by Neil Lathwood
co-authored by Neil Lathwood
parent ade409c4ec
commit d17eb4faaa
+1 -1
View File
@@ -197,7 +197,7 @@ class YamlDiscovery
foreach ($data_array as $data) {
foreach ((array)$data['oid'] as $oid) {
if (!isset($pre_cache[$oid])) {
if (!array_key_exists($oid, $pre_cache)) {
if (isset($data['snmp_flags'])) {
$snmp_flag = $data['snmp_flags'];
} else {