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
7fecd8b400
commit
b2d25ebb12
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ get '/dashboard/stats/vcloud/running' do
|
||||||
if ( params[:history] )
|
if ( params[:history] )
|
||||||
if ( $config[:config]['graphite'] )
|
if ( $config[:config]['graphite'] )
|
||||||
begin
|
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|
|
JSON.parse( buffer ).each do |pool|
|
||||||
if pool['target'] =~ /.*\.(.*)$/
|
if pool['target'] =~ /.*\.(.*)$/
|
||||||
pool['name'] = $1
|
pool['name'] = $1
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue