From 1fb821f6611c4ea75ef5d078d2452f1011370525 Mon Sep 17 00:00:00 2001 From: Michael Rosile Date: Wed, 23 Aug 2017 21:02:39 -0400 Subject: [PATCH] Added additional debug for "mors" --- vsphere-influxdb.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/vsphere-influxdb.go b/vsphere-influxdb.go index 0a4c16d..593d70a 100644 --- a/vsphere-influxdb.go +++ b/vsphere-influxdb.go @@ -253,7 +253,9 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient. newMors := []types.ManagedObjectReference{} - spew.Dump(mors) + if debug == true { + spew.Dump(mors) + } // Assign each MORS type to a specific array for _, mor := range mors { if mor.Type == "VirtualMachine" {