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:
Nash Kaminski
2022-07-27 03:08:17 -05:00
committed by GitHub
parent 797fe7477d
commit d0503fbdef

View File

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