Clear the OS cache when running collect and save test data scripts (#8767)

This commit is contained in:
Neil Lathwood
2018-05-26 16:33:56 +01:00
committed by Tony Murray
parent fc77900266
commit 02348be861
2 changed files with 2 additions and 1 deletions

View File

@@ -119,6 +119,7 @@ try {
echo "Capturing Data: ";
update_os_cache(true); // Force update of OS Cache
$capture->captureFromDevice($device['device_id'], true, $prefer_new_snmprec);
} catch (InvalidModuleException $e) {
echo $e->getMessage() . PHP_EOL;

View File

@@ -119,7 +119,7 @@ try {
}
echo PHP_EOL;
update_os_cache(true); // Force update of OS Cache
$tester = new ModuleTestHelper($modules, $target_os, $target_variant);
$test_data = $tester->generateTestData($snmpsim, $no_save);