mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	Clear the OS cache when running collect and save test data scripts (#8767)
This commit is contained in:
		
				
					committed by
					
						
						Tony Murray
					
				
			
			
				
	
			
			
			
						parent
						
							fc77900266
						
					
				
				
					commit
					02348be861
				
			@@ -119,6 +119,7 @@ try {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    echo "Capturing Data: ";
 | 
					    echo "Capturing Data: ";
 | 
				
			||||||
 | 
					    update_os_cache(true); // Force update of OS Cache
 | 
				
			||||||
    $capture->captureFromDevice($device['device_id'], true, $prefer_new_snmprec);
 | 
					    $capture->captureFromDevice($device['device_id'], true, $prefer_new_snmprec);
 | 
				
			||||||
} catch (InvalidModuleException $e) {
 | 
					} catch (InvalidModuleException $e) {
 | 
				
			||||||
    echo $e->getMessage() . PHP_EOL;
 | 
					    echo $e->getMessage() . PHP_EOL;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -119,7 +119,7 @@ try {
 | 
				
			|||||||
        }
 | 
					        }
 | 
				
			||||||
        echo PHP_EOL;
 | 
					        echo PHP_EOL;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        update_os_cache(true); // Force update of OS Cache
 | 
				
			||||||
        $tester = new ModuleTestHelper($modules, $target_os, $target_variant);
 | 
					        $tester = new ModuleTestHelper($modules, $target_os, $target_variant);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        $test_data = $tester->generateTestData($snmpsim, $no_save);
 | 
					        $test_data = $tester->generateTestData($snmpsim, $no_save);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user