def show_current(name):
    alt_link_path = '/etc/alternatives/{0}'.format(name)
    try:
        return os.readlink(alt_link_path)
    except OSError:
        log.error(
            'alternatives: path {0} does not exist'.format(alt_link_path)
        )
    return False
Display the current highest-priority alternative for a given alternatives
dataset/ETHPy150Open saltstack/salt/salt/modules/alternatives.py/show_current