Fix service template discovery (#12662)

This commit is contained in:
Tony Murray
2021-03-27 11:39:40 -05:00
committed by GitHub
parent e00eba327d
commit 646ec4d471

View File

@@ -4,7 +4,7 @@ use App\Http\Controllers\ServiceTemplateController;
use LibreNMS\Config;
if (Config::get('discover_services_templates')) {
ServiceTemplateController::applyAll();
(new ServiceTemplateController())->applyAll(); // FIXME applyAll() should not be on a controller
}
if (Config::get('discover_services')) {
// FIXME: use /etc/services?