vsphere/resource_vsphere_compute_cluster_host_group.go
func expandClusterHostGroup(d *schema.ResourceData, name string) (*types.ClusterHostGroup, error) {
	obj := &types.ClusterHostGroup{
		ClusterGroupInfo: types.ClusterGroupInfo{
			Name:        name,
			UserCreated: structure.BoolPtr(true),
		},
		Host: structure.SliceInterfacesToManagedObjectReferences(d.Get("host_system_ids").(*schema.Set).List(), "HostSystem"),
	}
	return obj, nil
}
func expandClusterHostGroup(d *schema.ResourceData, name string) (*types.ClusterHostGroup, error) {
	obj := &types.ClusterHostGroup{
		ClusterGroupInfo: types.ClusterGroupInfo{
			Name:        name,
			UserCreated: structure.BoolPtr(true),
		},
		Host: structure.SliceInterfacesToManagedObjectReferences(d.Get("host_system_ids").(*schema.Set).List(), "HostSystem"),
	}
	return obj, nil
}
// expandClusterHostGroup reads certain ResourceData keys and returns a
// ClusterHostGroup.