mirror of
https://github.com/puppetlabs/vmfloaty.git
synced 2026-01-26 05:28:40 -05:00
Fix filter unknown variable
This commit is contained in:
parent
2e32472ac2
commit
31de937e4f
1 changed files with 1 additions and 1 deletions
|
|
@ -10,7 +10,7 @@ class Pooler
|
|||
response_body = JSON.parse(response.body)
|
||||
|
||||
if os_filter
|
||||
hosts = response_body.select { |i| i[/#{pattern}/] }
|
||||
hosts = response_body.select { |i| i[/#{os_filter}/] }
|
||||
else
|
||||
hosts = response_body
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue