vsphere/internal/helper/resourcepool/resource_pool_helper.go
func OSFamily(client *govmomi.Client, pool *object.ResourcePool, guest string) (string, error) {
	log.Printf("[DEBUG] Looking for OS family for guest ID %q", guest)
	pprops, err := Properties(pool)
	if err != nil {
		return "", err
	}
	return computeresource.OSFamily(client, pprops.Owner, guest)
}
func OSFamily(client *govmomi.Client, pool *object.ResourcePool, guest string) (string, error) {
	log.Printf("[DEBUG] Looking for OS family for guest ID %q", guest)
	pprops, err := Properties(pool)
	if err != nil {
		return "", err
	}
	return computeresource.OSFamily(client, pprops.Owner, guest)
}
// OSFamily uses the resource pool's environment browser to get the OS family
// for a specific guest ID.