mirror of
				https://github.com/Oxalide/vsphere-influxdb-go.git
				synced 2023-10-10 11:36:51 +00:00 
			
		
		
		
	extending debug mode
This commit is contained in:
		@@ -21,7 +21,7 @@ import (
 | 
			
		||||
	"encoding/json"
 | 
			
		||||
	"flag"
 | 
			
		||||
	"fmt"
 | 
			
		||||
	//	"github.com/davecgh/go-spew/spew"
 | 
			
		||||
	"github.com/davecgh/go-spew/spew"
 | 
			
		||||
	"golang.org/x/net/context"
 | 
			
		||||
	"log"
 | 
			
		||||
	"math"
 | 
			
		||||
@@ -249,6 +249,7 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
 | 
			
		||||
 | 
			
		||||
	new_mors := []types.ManagedObjectReference{}
 | 
			
		||||
 | 
			
		||||
	spew.Dump(mors)
 | 
			
		||||
	// Assign each MORS type to a specific array
 | 
			
		||||
	for _, mor := range mors {
 | 
			
		||||
		if mor.Type == "VirtualMachine" {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user