Fix SnmpQuery and max_oid (#14955)

If the snmpget had less oids than the max, it would run them one at a time instead of all together.
This commit is contained in:
Tony Murray
2023-04-10 12:07:32 -05:00
committed by GitHub
parent 2b1f6a743d
commit d09c5540ed

View File

@@ -506,7 +506,7 @@ class NetSnmpQuery implements SnmpQueryInterface
return array_chunk($oids, $max_oids);
}
return $oids;
return [$oids]; // wrap in array for execMultiple so they are all done at once
}
private function parseOid(array|string $oid): array