refactor: only run pre-cache for the current OS (#6453)

Change powerwalker to use the $pre_cache array
This commit is contained in:
Tony Murray
2017-04-18 16:26:58 -05:00
committed by Neil Lathwood
parent 2ced131cf5
commit c88c677a16
17 changed files with 54 additions and 79 deletions

View File

@@ -23,7 +23,5 @@
* @author Neil Lathwood <neil@lathwood.co.uk>
*/
if ($device['os'] === 'apc') {
$pre_cache['cooling_unit_analog'] = snmpwalk_cache_oid($device, 'coolingUnitStatusAnalogEntry', array(), 'PowerNet-MIB');
d_echo($pre_cache);
}
echo 'coolingUnitStatusAnalogEntry ';
$pre_cache['cooling_unit_analog'] = snmpwalk_cache_oid($device, 'coolingUnitStatusAnalogEntry', array(), 'PowerNet-MIB');