mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix lnms scan nets not detected (#13129)
using the wrong config. Thanks PJGuy.
This commit is contained in:
@@ -297,7 +297,7 @@ Artisan::command('scan
|
||||
/** @var \Illuminate\Console\Command $this */
|
||||
$command = [base_path('snmp-scan.py')];
|
||||
|
||||
if (empty($this->argument('network')) && ! Config::has('nets')) {
|
||||
if (empty($this->argument('network')) && ! \LibreNMS\Config::has('nets')) {
|
||||
$this->error(__('Network is required if \'nets\' is not set in the config'));
|
||||
|
||||
return 1;
|
||||
|
Reference in New Issue
Block a user