mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 02:18:41 -05:00
[QENG-4075] Clean up pool manager, specs
Prior to this, `pool_manager.rb` allowed the `metrics` argument to be optional, but at this point it will be an instance of `Vmpooler::Statsd`, 'Vmpooler::Graphite', or `Vmpooler::DummyStatsd`, so making this non-optional. Cleaned up that file's tests, cosmetically, as well as recognizing that the behavioral difference between graphite and statsd does not depend on the pool manager.
This commit is contained in:
parent
218f098800
commit
ad56bbc732
2 changed files with 10 additions and 46 deletions
|
|
@ -1,6 +1,6 @@
|
|||
module Vmpooler
|
||||
class PoolManager
|
||||
def initialize(config, logger, redis, metrics = nil)
|
||||
def initialize(config, logger, redis, metrics)
|
||||
$config = config
|
||||
|
||||
# Load logger library
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue