Skip to content

Commit

Permalink
Added additional debug for "mors"
Browse files Browse the repository at this point in the history
  • Loading branch information
mikerosile committed Aug 24, 2017
1 parent 911271d commit 1fb821f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vsphere-influxdb.go
Expand Up @@ -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" {
Expand Down

0 comments on commit 1fb821f

Please sign in to comment.