mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(RE-7014) statsd nitpicks and additional rspec
Cleaned up some code review nitpicks and added pool_manager_spec for empty pool.
This commit is contained in:
parent
b983472088
commit
c133bed945
5 changed files with 39 additions and 23 deletions
|
|
@ -88,7 +88,7 @@ module Vmpooler
|
|||
end
|
||||
|
||||
def self.new_statsd(server, port)
|
||||
if server.nil? or server.empty? or server.length == 0
|
||||
if server.nil? || server.empty?
|
||||
nil
|
||||
else
|
||||
Statsd.new server, port
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue