Fix poller group query in discovery.php. #1433

Merged
merged 1 commit into from Jul 11, 2015

Projects

None yet

3 participants

@spinza
Contributor
spinza commented Jul 10, 2015

There was a bug in discovery.php. The query was created incorrectly where $config['distributed_poller_group'] was specified as a string.
$config['distributed_poller_group']='0,2' would create a SQL that looked like:

 WHERE status = 1 AND disabled = 0 AND `last_discovered` IS NULL AND poller_group IN('0,2') 

The above won't match any devices.
This PR fixes that and makes it look like:

WHERE status = 1 AND disabled = 0 AND `last_discovered` IS NULL AND poller_group IN(0,2)
@spinza spinza Fix poller group query in discovery.php.
9cf8bc0
@paulgear paulgear merged commit 60b19d8 into librenms:master Jul 11, 2015

2 checks passed

Auto-Deploy Build finished.
Details
Scrutinizer 2 new issues
Details
@spinza spinza deleted the unknown repository branch Jul 11, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment