Skip to content

Commit

Permalink
test3
Browse files Browse the repository at this point in the history
  • Loading branch information
Hela Drira committed May 4, 2017
1 parent 86b401f commit 84d9145
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions vsphere-influxdb.go
Expand Up @@ -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{}

Expand All @@ -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)
}
Expand Down

0 comments on commit 84d9145

Please sign in to comment.