mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 10:28:41 -05:00
(maint) fix variable reference in new_metrics
This was referencing config directly, when what we want is for a hash to be passed in (derived from config).
This commit is contained in:
parent
c49c252f8f
commit
ac2b7c090c
1 changed files with 4 additions and 4 deletions
|
|
@ -72,10 +72,10 @@ module Vmpooler
|
||||||
end
|
end
|
||||||
|
|
||||||
def self.new_metrics(params)
|
def self.new_metrics(params)
|
||||||
if config[:statsd]
|
if params[:statsd]
|
||||||
Vmpooler::Statsd.new(config[:statsd])
|
Vmpooler::Statsd.new(params[:statsd])
|
||||||
elsif config[:graphite]
|
elsif params[:graphite]
|
||||||
Vmpooler::Graphite.new(config[:graphite])
|
Vmpooler::Graphite.new(params[:graphite])
|
||||||
else
|
else
|
||||||
Vmpooler::DummyStatsd.new
|
Vmpooler::DummyStatsd.new
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue