vsphere/internal/helper/folder/folder_helper.go
func datacenterPathFromHostSystemID(client *govmomi.Client, hsID string) (string, error) {
	hs, err := hostsystem.FromID(client, hsID)
	if err != nil {
		return "", err
	}
	return RootPathParticleHost.SplitDatacenter(hs.InventoryPath)
}
func datacenterPathFromHostSystemID(client *govmomi.Client, hsID string) (string, error) {
	hs, err := hostsystem.FromID(client, hsID)
	if err != nil {
		return "", err
	}
	return RootPathParticleHost.SplitDatacenter(hs.InventoryPath)
}
func datacenterPathFromHostSystemID ( client * govmomi . Client , hsID string ) ( string , error ) { hs , err := hostsystem . FromID ( client , hsID ) if err != nil { return " " , err } return RootPathParticleHost . SplitDatacenter ( hs . InventoryPath ) }
// datacenterPathFromHostSystemID returns the datacenter section of a
// HostSystem's inventory path.
datacenterPathFromHostSystemID returns the datacenter section of a HostSystem s inventory path .