def ls_(active=None, cache=True, path=None):
    '''
    Return a list of the containers available on the minion

    path
        path to the container parent directory
        default: /var/lib/lxc (system)

        .. versionadded:: 2015.8.0

    active
        If ``True``, return only active (i.e. running) containers

        .. versionadded:: 2015.5.0

    CLI Example:

    .. code-block:: bash

        salt '*' lxc.ls
        salt '*' lxc.ls active=True
    '''
    contextvar = 'lxc.ls{0}'.format(path)
    if active:
        contextvar += '.active'
    if cache and (__context__ in contextvar):
        return __context__[contextvar]
    else:
        ret = []
        cmd = 'lxc-ls'
        if path:
            cmd += ' -P {0}'.format(pipes.quote(path))
        if active:
            cmd += ' --active'
        output = __salt__['cmd.run_stdout'](cmd, python_shell=False)
        for line in output.splitlines():
            ret.extend(line.split())
        __context__[contextvar] = ret
        return ret
dataset/ETHPy150Open saltstack/salt/salt/modules/lxc.py/ls_/swapped operands of `in`