mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 18:08:42 -05:00
deprecate 'Hash.new' for '{}'
This commit is contained in:
parent
2fa7e1e736
commit
c66315ce26
1 changed files with 2 additions and 2 deletions
|
|
@ -51,7 +51,7 @@ module Vmpooler
|
|||
get '/dashboard/stats/vmpooler/pool/?' do
|
||||
content_type :json
|
||||
|
||||
result = Hash.new
|
||||
result = {}
|
||||
|
||||
$config[:pools].each do |pool|
|
||||
result[pool['name']] ||= Hash.new
|
||||
|
|
@ -106,7 +106,7 @@ module Vmpooler
|
|||
get '/dashboard/stats/vmpooler/running/?' do
|
||||
content_type :json
|
||||
|
||||
result = Hash.new
|
||||
result = {}
|
||||
|
||||
$config[:pools].each do |pool|
|
||||
running = $redis.scard('vmpooler__running__' + pool['name'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue