Adding the ability to use multiple poller groups for a poller.

This commit is contained in:
Louis Rossouw
2015-06-22 12:37:00 +02:00
parent 35f784cfde
commit 7f3f942e83
4 changed files with 28 additions and 6 deletions

View File

@@ -195,7 +195,7 @@ except:
"""
# (c) 2015, GPLv3, Daniel Preussker <f0o@devilcode.org> <<<EOC2
if poller_group is not False:
query = "select device_id from devices where poller_group = " + poller_group + " and disabled = 0 order by last_polled_timetaken desc"
query = "select device_id from devices where poller_group IN(" + poller_group + ") and disabled = 0 order by last_polled_timetaken desc"
else:
query = "select device_id from devices where disabled = 0 order by last_polled_timetaken desc"
# EOC2