mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix invalid json in test data (#9015)
* Fix invalid json in test data Most simply needed the syntax fixed fail2ban needed updated data (added non-zero values in test data too) awplus: ntp application cannot be enabled by tests since it doesn't use snmp extend... ntp app is enabled by ntp module... pass on that for now. * missed awplus change somehow...
This commit is contained in:
@@ -238,6 +238,11 @@ class ModuleTestHelper
|
||||
// calculate valid modules
|
||||
$data_modules = array_keys(json_decode(file_get_contents($file), true));
|
||||
|
||||
if (json_last_error()) {
|
||||
echo "Invalid json data: $base_name\n";
|
||||
exit(1);
|
||||
}
|
||||
|
||||
if (empty($modules)) {
|
||||
$valid_modules = $data_modules;
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user