def LookupSpaceInfoByStorageType(storage_space_info, storage_type):
  result = None
  for unit_info in storage_space_info:
    if unit_info["type"] == storage_type:
      if result is None:
        result = unit_info
      else:
        # There is more than one storage type in the query, log a warning
        logging.warning("Storage space information requested for"
                        " ambiguous storage type '%s'.", storage_type)
  return result
Denote an attribute name as a synonym to a mapped property,
dataset/ETHPy150Open ganeti/ganeti/lib/utils/storage.py/LookupSpaceInfoByStorageType--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/sqlalchemy/orm/descriptor_props.py/SynonymProperty.__init__