This commit is contained in:
Hela Drira 2017-05-04 18:00:32 +02:00
parent 86b401fae0
commit 84d9145c93
1 changed files with 4 additions and 4 deletions

View File

@ -247,7 +247,7 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
vm_refs := []types.ManagedObjectReference{} vm_refs := []types.ManagedObjectReference{}
host_refs := []types.ManagedObjectReference{} host_refs := []types.ManagedObjectReference{}
cluster_refs := []types.ManagedObjectReference{} cluster_refs := []types.ManagedObjectReference{}
resp_refs := []types.ManagedObjectReference{} //resp_refs := []types.ManagedObjectReference{}
new_mors := []types.ManagedObjectReference{} new_mors := []types.ManagedObjectReference{}
@ -260,9 +260,9 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
} else if mor.Type == "HostSystem" { } else if mor.Type == "HostSystem" {
host_refs = append(host_refs, mor) host_refs = append(host_refs, mor)
new_mors = append(new_mors, mor) new_mors = append(new_mors, mor)
} else if mor.Type == "ResourcePool" { //} else if mor.Type == "ResourcePool" {
resp_refs = append(resp_refs, mor) // resp_refs = append(resp_refs, mor)
new_mors = append(new_mors, mor) // new_mors = append(new_mors, mor)
} else if mor.Type == "ClusterComputeResource" { } else if mor.Type == "ClusterComputeResource" {
cluster_refs = append(cluster_refs, mor) cluster_refs = append(cluster_refs, mor)
} }