From 482da3d2b98760b5aeb8b376b2720904c50e792f Mon Sep 17 00:00:00 2001 From: Adrian Todorov Date: Thu, 11 Aug 2016 16:14:38 +0200 Subject: [PATCH] further extend debug mode --- vsphere-influxdb.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vsphere-influxdb.go b/vsphere-influxdb.go index 8ce8661..088c727 100644 --- a/vsphere-influxdb.go +++ b/vsphere-influxdb.go @@ -301,8 +301,11 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient. if debug == true { stdlog.Println("---cluster name - you should see every cluster here---") stdlog.Println(cl.Name) + stdlog.Println("You should see the cluster object, clsuter configuration object, and cluster configuration dasvmconfig which should contain all VMs") + spew.Dump(cl) + spew.Dump(cl.Configuration) + spew.Dump(cl.Configuration.DasVmConfig) } - for _, vm := range cl.Configuration.DasVmConfig { if debug == true { stdlog.Println("--VM ID - you should see every VM ID here--")