mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix 500 error in validation when UI containers and poller containers have differing node_ids (#14146)
* Fix 500 error in validation when UI containers and poller containers have unique node_ids * Update DistributedPoller.php Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -99,7 +99,7 @@ class DistributedPoller extends BaseValidation
|
||||
}
|
||||
|
||||
$node = PollerCluster::firstWhere('node_id', config('librenms.node_id'));
|
||||
if (! $node->exists) {
|
||||
if (is_null($node)) {
|
||||
$validator->fail('Dispatcher service is enabled on your cluster, but not in use on this node');
|
||||
|
||||
return;
|
||||
|
Reference in New Issue
Block a user