def _GetConfigVersion():
  """Determine the version the configuration file currently has.

  @rtype: tuple or None
  @return: (major, minor, revision) if the version can be determined,
      None otherwise

  """
  config_data = serializer.LoadJson(utils.ReadFile(pathutils.CLUSTER_CONF_FILE))
  try:
    config_version = config_data["version"]
  except __HOLE__:
    return None
  return utils.SplitVersion(config_version)
dataset/ETHPy150Open ganeti/ganeti/lib/client/gnt_cluster.py/_GetConfigVersion