Fix lnms scan nets not detected (#13129)

using the wrong config.  Thanks PJGuy.
This commit is contained in:
Tony Murray
2021-08-11 19:01:52 -05:00
committed by GitHub
parent a7f9c97ae7
commit 43cd9b0c79

View File

@@ -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;