func validateHostFolder(folder *object.Folder) (*object.Folder, error) {
	ft, err := FindType(folder)
	if err != nil {
		return nil, err
	}
	if ft != VSphereFolderTypeHost {
		return nil, fmt.Errorf("%q is not a host folder", folder.InventoryPath)
	}
	return folder, nil
}
func validateHostFolder(folder *object.Folder) (*object.Folder, error) {
	ft, err := FindType(folder)
	if err != nil {
		return nil, err
	}
	if ft != VSphereFolderTypeHost {
		return nil, fmt.Errorf("%q is not a host folder", folder.InventoryPath)
	}
	return folder, nil
}
func validateHostFolder ( folder * object . Folder ) ( * object . Folder , error ) { ft , err := FindType ( folder ) if err != nil { return nil , err } if ft != VSphereFolderTypeHost { return nil , fmt . Errorf ( " " , folder . InventoryPath ) } return folder , nil }
// validateHostFolder checks to make sure the folder is a host
// folder, and returns it if it is, or an error if it isn't.
validateHostFolder checks to make sure the folder is a host folder and returns it if it is or an error if it isn t .