()
return track
Retrieve the currently set track.

  Returns:
    track: As defined in Track key, stable if undefined, or unstable
        if Major OS version does not match currently supported version.
Retrieve the currently set track.
Retrieve the currently set track .
def GetTrack():
  """Retrieve the currently set track.

  Returns:
    track: As defined in Track key, stable if undefined, or unstable
        if Major OS version does not match currently supported version.
  """
  major_os_version = GetMajorOSVersion()
  if not major_os_version:
    track = 'stable'
  else:
    track = MachineInfoForKey('Track')
    if distutils_version.LooseVersion(
        major_os_version) > distutils_version.LooseVersion(MAX_SUPPORTED_VERS):
      track = 'unstable'
    elif track not in ['stable', 'testing', 'unstable']:
      track = 'stable'
  return track
def GetTrack ( ) : major_os_version = GetMajorOSVersion ( ) if not major_os_version : track = 'stable' else : track = MachineInfoForKey ( 'Track' ) if distutils_version . LooseVersion ( major_os_version ) > distutils_version . LooseVersion ( MAX_SUPPORTED_VERS ) : track = 'unstable' elif track not in [ 'stable' , 'testing' , 'unstable' ] : track = 'stable' return track