From 9eb67881482d73671f40d77b08698e60be7c5c8f Mon Sep 17 00:00:00 2001 From: "kirby@puppetlabs.com" Date: Mon, 6 Mar 2017 09:15:54 -0800 Subject: [PATCH] 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. --- lib/vmpooler/vsphere_helper.rb | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/vmpooler/vsphere_helper.rb b/lib/vmpooler/vsphere_helper.rb index cc93250..5432695 100644 --- a/lib/vmpooler/vsphere_helper.rb +++ b/lib/vmpooler/vsphere_helper.rb @@ -15,7 +15,6 @@ module Vmpooler def ensure_connected(connection, credentials) connection.serviceInstance.CurrentTime rescue - $metrics.increment("connect.open") connect_to_vsphere $credentials end