vsphere/internal/helper/storagepod/storage_pod_helper.go
func StorageDRSEnabled(pod *object.StoragePod) (bool, error) {
	props, err := Properties(pod)
	if err != nil {
		return false, err
	}
	if props.PodStorageDrsEntry == nil {
		return false, nil
	}
	return props.PodStorageDrsEntry.StorageDrsConfig.PodConfig.Enabled, nil
}
func StorageDRSEnabled(pod *object.StoragePod) (bool, error) {
	props, err := Properties(pod)
	if err != nil {
		return false, err
	}
	if props.PodStorageDrsEntry == nil {
		return false, nil
	}
	return props.PodStorageDrsEntry.StorageDrsConfig.PodConfig.Enabled, nil
}
func StorageDRSEnabled ( pod * object . StoragePod ) ( bool , error ) { props , err := Properties ( pod ) if err != nil { return false , err } if props . PodStorageDrsEntry == nil { return false , nil } return props . PodStorageDrsEntry . StorageDrsConfig . PodConfig . Enabled , nil }
// StorageDRSEnabled checks a StoragePod to see if Storage DRS is enabled.
StorageDRSEnabled checks a StoragePod to see if Storage DRS is enabled .