Added additional debug for "mors"

This commit is contained in:
Michael Rosile 2017-08-23 21:02:39 -04:00
parent 911271defd
commit 1fb821f661
1 changed files with 3 additions and 1 deletions

View File

@ -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" {