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 return
} }
// Retrieve properties for all resourcepools // Retrieve properties for all resourcepools
var respmo []mo.ResourcePool //var respmo []mo.ResourcePool
err = pc.Retrieve(ctx, resp_refs, []string{"summary"}, &respmo) //err = pc.Retrieve(ctx, resp_refs, []string{"summary"}, &respmo)
if err != nil { //if err != nil {
fmt.Println(err) // fmt.Println(err)
return //return
} //}
// Initialize the map that will hold the VM MOR to cluster reference // Initialize the map that will hold the VM MOR to cluster reference
vmToCluster := make(map[types.ManagedObjectReference]string) vmToCluster := make(map[types.ManagedObjectReference]string)