mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
Missed one $config object
This commit is contained in:
parent
3fdcfdfbbc
commit
623d783733
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ get '/dashboard/stats/vcloud/running' do
|
|||
if ( params[:history] )
|
||||
if ( $config[:config]['graphite'] )
|
||||
begin
|
||||
buffer = open( 'http://'+config[:config]['graphite']+'/render?target=vcloud.running.*&from=-1hour&format=json' ).read
|
||||
buffer = open( 'http://'+$config[:config]['graphite']+'/render?target=vcloud.running.*&from=-1hour&format=json' ).read
|
||||
JSON.parse( buffer ).each do |pool|
|
||||
if pool['target'] =~ /.*\.(.*)$/
|
||||
pool['name'] = $1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue