1
0
mirror of https://github.com/Oxalide/vsphere-influxdb-go.git synced 2023-10-10 13:36:51 +02:00
This commit is contained in:
Hela Drira 2017-05-04 18:00:32 +02:00
parent 86b401fae0
commit 84d9145c93

View File

@ -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)
}