mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Remove shadowed variable from get_provider_for_pool
This commit updates a block that was creating a shadow variable to use a different variable.
This commit is contained in:
parent
61e9f56ed2
commit
ed88fb1302
1 changed files with 1 additions and 1 deletions
|
|
@ -603,7 +603,7 @@ module Vmpooler
|
|||
# @param pool_name [String] - the name of the pool
|
||||
# @return [Provider] - returns the provider class Object
|
||||
def get_provider_for_pool(pool_name)
|
||||
pool = $config[:pools].find { |pool| pool['name'] == pool_name }
|
||||
pool = $config[:pools].find { |p| p['name'] == pool_name }
|
||||
return nil unless pool
|
||||
|
||||
provider_name = pool.fetch('provider', nil)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue