def ConvertStorageType(user_storage_type):
  """Converts a user storage type to its internal name.

  """
  try:
    return _USER_STORAGE_TYPE[user_storage_type]
  except KeyError:
    raise errors.OpPrereqError(user_storage_type % "Unknown storage type: %s",
                               errors.ECODE_INVAL)
dataset/ETHPy150Open ganeti/ganeti/lib/client/gnt_node.py/ConvertStorageType/swapped operands of `%`