code: func (dc *Datacenter) GetAllHosts(ctx context.Context) ([]types.ManagedObjectReference, error) {
  	finder := getFinder(dc)
  	hostSystems, err := finder.HostSystemList(ctx, "*")
  	if err != nil {
  		klog.Errorf("Failed to get all hostSystems. err: %+v", err)
  		return nil, err
  	}
  	var hostMors []types.ManagedObjectReference
  	for _, hs := range hostSystems {
  		hostMors = append(hostMors, hs.Reference())
  	}
  	return hostMors, nil
  }
docs: // GetAllHosts returns all the host objects in this datacenter of VC