def METHOD_NAME(version: str) -> str:
  """Parses Redis major and minor version number.
  Used for Azure and AWS versions.
  Args:
    version: String. Version string to get parsed.
  Returns:
    Parsed version
  """
  if version.count('.') < 1:
    logging.info(
        (
            'Could not parse version string correctly,'
            'full Redis version returned: %s'
        ),
        version,
    )
    return version
  return '.'.join(version.split('.', 2)[:2])