Remove duplicate of metrics.connect.open

This commit removes a duplicate increment of the metrics.connect.open count. Without this change two connections will be reported when one is made.
This commit is contained in:
kirby@puppetlabs.com 2017-03-06 09:15:54 -08:00
parent 1bbd623609
commit 9eb6788148

View file

@ -15,7 +15,6 @@ module Vmpooler
def ensure_connected(connection, credentials)
connection.serviceInstance.CurrentTime
rescue
$metrics.increment("connect.open")
connect_to_vsphere $credentials
end