def get_running():
    '''
    Return the running services

    CLI Example:

    .. code-block:: bash

        salt '*' service.get_running
    '''
    ret = set()
    cmd = '/usr/bin/svcs -H -o FMRI,STATE -s FMRI'
    lines = __salt__['cmd.run'](cmd, python_shell=False).splitlines()
    for line in lines:
        comps = line.split()
        if not comps:
            continue
        if line in 'online':
            ret.add(comps[0])
    return sorted(ret)
dataset/ETHPy150Open saltstack/salt/salt/modules/smf.py/get_running/swapped operands of `in`