Fix filter unknown variable

This commit is contained in:
Brian Cain 2015-09-14 16:51:48 -07:00
parent 2e32472ac2
commit 31de937e4f

View file

@ -10,7 +10,7 @@ class Pooler
response_body = JSON.parse(response.body) response_body = JSON.parse(response.body)
if os_filter if os_filter
hosts = response_body.select { |i| i[/#{pattern}/] } hosts = response_body.select { |i| i[/#{os_filter}/] }
else else
hosts = response_body hosts = response_body
end end