def GetStorageUnits(cfg, disk_templates):
  storage_units = []
  for disk_template in disk_templates:
    if DiskTemplateSupportsSpaceReporting(disk_template):
      storage_units.append(
          _GetDefaultStorageUnitForDiskTemplate(cfg, disk_template))
  return storage_units
Get the cluster's storage units for the given disk templates.
dataset/ETHPy150Open ganeti/ganeti/lib/utils/storage.py/GetStorageUnits