mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix some ErrorExceptions (#14241)
* Fix some ErrorExceptions * Use Config::get default value Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -21,7 +21,7 @@ if (count($drives)) {
|
||||
$skipdrive = 0;
|
||||
|
||||
if ($device['os'] == 'junos') {
|
||||
foreach (\LibreNMS\Config::get('ignore_junos_os_drives') as $jdrive) {
|
||||
foreach (\LibreNMS\Config::get('ignore_junos_os_drives', []) as $jdrive) {
|
||||
if (preg_match($jdrive, $drive['storage_descr'])) {
|
||||
$skipdrive = 1;
|
||||
}
|
||||
@@ -31,7 +31,7 @@ if (count($drives)) {
|
||||
}
|
||||
|
||||
if ($device['os'] == 'freebsd') {
|
||||
foreach (\LibreNMS\Config::get('ignore_bsd_os_drives') as $jdrive) {
|
||||
foreach (\LibreNMS\Config::get('ignore_bsd_os_drives', []) as $jdrive) {
|
||||
if (preg_match($jdrive, $drive['storage_descr'])) {
|
||||
$skipdrive = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user