This commit is contained in:
Hela Drira 2017-05-04 17:52:45 +02:00
parent 781d50a12b
commit b16cc794ca
1 changed files with 6 additions and 6 deletions

View File

@ -289,12 +289,12 @@ func (vcenter *VCenter) Query(config Configuration, InfluxDBClient influxclient.
return
}
// Retrieve properties for all resourcepools
var respmo []mo.ResourcePool
err = pc.Retrieve(ctx, resp_refs, []string{"summary"}, &respmo)
if err != nil {
fmt.Println(err)
return
}
//var respmo []mo.ResourcePool
//err = pc.Retrieve(ctx, resp_refs, []string{"summary"}, &respmo)
//if err != nil {
// fmt.Println(err)
//return
//}
// Initialize the map that will hold the VM MOR to cluster reference
vmToCluster := make(map[types.ManagedObjectReference]string)