mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
The same method logic was being used in two places but only one was calling the method get_cluster_host_utilization, so this refactors it to use the method for both. The method could also return an empty array and the subsequent line would try to .sort[0][1] which would return undefined method [] for nil:NilClass in that case. The return value is now checked and an exception raised |
||
|---|---|---|
| .. | ||
| api | ||
| providers | ||
| public | ||
| views | ||
| api.rb | ||
| dashboard.rb | ||
| dummy_statsd.rb | ||
| generic_connection_pool.rb | ||
| graphite.rb | ||
| logger.rb | ||
| pool_manager.rb | ||
| providers.rb | ||
| statsd.rb | ||