mirror of
https://github.com/Oxalide/vsphere-influxdb-go.git
synced 2023-10-10 13:36:51 +02:00
test3
This commit is contained in:
parent
86b401fae0
commit
84d9145c93
@ -247,7 +247,7 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
|
||||
vm_refs := []types.ManagedObjectReference{}
|
||||
host_refs := []types.ManagedObjectReference{}
|
||||
cluster_refs := []types.ManagedObjectReference{}
|
||||
resp_refs := []types.ManagedObjectReference{}
|
||||
//resp_refs := []types.ManagedObjectReference{}
|
||||
|
||||
new_mors := []types.ManagedObjectReference{}
|
||||
|
||||
@ -260,9 +260,9 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
|
||||
} else if mor.Type == "HostSystem" {
|
||||
host_refs = append(host_refs, mor)
|
||||
new_mors = append(new_mors, mor)
|
||||
} else if mor.Type == "ResourcePool" {
|
||||
resp_refs = append(resp_refs, mor)
|
||||
new_mors = append(new_mors, mor)
|
||||
//} else if mor.Type == "ResourcePool" {
|
||||
// resp_refs = append(resp_refs, mor)
|
||||
// new_mors = append(new_mors, mor)
|
||||
} else if mor.Type == "ClusterComputeResource" {
|
||||
cluster_refs = append(cluster_refs, mor)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user