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